Set correct stream_time in newsegment event. avi can also handle a duration query now.

Original commit message from CVS:
* ext/dv/gstdvdemux.c: (gst_dvdemux_demux_frame):
* gst/avi/gstavidemux.c: (gst_avi_demux_get_src_query_types),
(gst_avi_demux_handle_seek):
Set correct stream_time in newsegment event.
avi can also handle a duration query now.
This commit is contained in:
Wim Taymans 2005-10-21 16:15:57 +00:00
parent e6ed867610
commit bee54790e7
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2005-10-21 Wim Taymans <wim@fluendo.com>
* ext/dv/gstdvdemux.c: (gst_dvdemux_demux_frame):
* gst/avi/gstavidemux.c: (gst_avi_demux_get_src_query_types),
(gst_avi_demux_handle_seek):
Set correct stream_time in newsegment event.
avi can also handle a duration query now.
2005-10-20 Tim-Philipp Müller <tim at centricular dot net>
* gst/matroska/matroska-demux.c:

View file

@ -884,7 +884,8 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, const guint8 * data)
}
event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
dvdemux->start_timestamp, dvdemux->stop_timestamp, 0);
dvdemux->start_timestamp, dvdemux->stop_timestamp,
dvdemux->start_timestamp);
gst_dvdemux_send_event (dvdemux, event);
dvdemux->need_discont = FALSE;

View file

@ -371,6 +371,7 @@ gst_avi_demux_get_src_query_types (GstPad * pad)
{
static const GstQueryType src_types[] = {
GST_QUERY_POSITION,
GST_QUERY_DURATION,
0
};