Commit bee54790 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent e6ed8676
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:
......
......@@ -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;
......
......@@ -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
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment