mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
ext/dv/gstdvdemux.c: Respect segment.stop. Fixes #342592.
Original commit message from CVS: * ext/dv/gstdvdemux.c: (gst_dvdemux_demux_frame): Respect segment.stop. Fixes #342592.
This commit is contained in:
parent
40131326b3
commit
4d4c2a5520
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-06-14 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/dv/gstdvdemux.c: (gst_dvdemux_demux_frame):
|
||||
Respect segment.stop. Fixes #342592.
|
||||
|
||||
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream):
|
||||
|
|
|
@ -1397,10 +1397,15 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer)
|
|||
goto done;
|
||||
}
|
||||
|
||||
ret = GST_FLOW_OK;
|
||||
gst_segment_set_last_stop (&dvdemux->time_segment, GST_FORMAT_TIME, next_ts);
|
||||
dvdemux->frame_offset++;
|
||||
|
||||
/* check for the end of the segment */
|
||||
if (dvdemux->time_segment.stop != -1 && next_ts > dvdemux->time_segment.stop)
|
||||
ret = GST_FLOW_UNEXPECTED;
|
||||
else
|
||||
ret = GST_FLOW_OK;
|
||||
|
||||
done:
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue