avidemux: push mode: find the correct chunk for segment following seek
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 28 Sep 2012 14:50:25 +0000 (16:50 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 28 Sep 2012 15:04:42 +0000 (17:04 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684977

gst/avi/gstavidemux.c

index 7cd1a0e..533e6bb 100644 (file)
@@ -767,7 +767,7 @@ gst_avi_demux_handle_sink_event (GstPad * pad, GstObject * parent,
             k = i;
           }
           /* exact match needs no further searching */
-          if (stream->index[index].offset == segment.start)
+          if (stream->index[index].offset == boffset)
             break;
         } while (++i < avi->num_streams);
         boffset -= 8;