[gst-cvs] gst-plugins-bad: resindvd: Remove redundant modulo operation in the demuxer

Jan Schmidt thaytan at kemper.freedesktop.org
Wed Apr 29 13:37:57 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: 243f58f2fc107603a781678682cdfd8bd8570e2a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=243f58f2fc107603a781678682cdfd8bd8570e2a

Author: Jan Schmidt <thaytan at noraisin.net>
Date:   Fri Apr 24 14:08:55 2009 +0100

resindvd: Remove redundant modulo operation in the demuxer

---

 ext/resindvd/gstmpegdemux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/resindvd/gstmpegdemux.c b/ext/resindvd/gstmpegdemux.c
index cc37ec4..91ffad1 100644
--- a/ext/resindvd/gstmpegdemux.c
+++ b/ext/resindvd/gstmpegdemux.c
@@ -735,7 +735,7 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
 
       stream_id %= MAX_DVD_AUDIO_STREAMS;
 
-      aud_type = demux->audio_stream_types[stream_id % MAX_DVD_AUDIO_STREAMS];
+      aud_type = demux->audio_stream_types[stream_id];
 
       switch (aud_type) {
         case 0x0:





More information about the Gstreamer-commits mailing list