gst/wavparse/gstwavparse.c: Set stream time correctly in newsegment.

Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_handle_seek),
(gst_wavparse_stream_headers), (gst_wavparse_stream_data),
(gst_wavparse_pad_convert), (gst_wavparse_srcpad_event):
Set stream time correctly in newsegment.
This commit is contained in:
Wim Taymans 2005-10-20 11:50:53 +00:00
parent 9f4609665a
commit 57bcc588e4
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2005-10-20 Wim Taymans <wim@fluendo.com>
* gst/wavparse/gstwavparse.c: (gst_wavparse_handle_seek),
(gst_wavparse_stream_headers), (gst_wavparse_stream_data),
(gst_wavparse_pad_convert), (gst_wavparse_srcpad_event):
Set stream time correctly in newsegment.
2005-10-20 Wim Taymans <wim@fluendo.com> 2005-10-20 Wim Taymans <wim@fluendo.com>
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek): * gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek):

View file

@ -731,7 +731,7 @@ gst_wavparse_handle_seek (GstWavParse * wav, gboolean update)
GST_TIME_ARGS (stop_time)); GST_TIME_ARGS (stop_time));
wav->seek_event = gst_event_new_newsegment (!update, wav->segment_rate, wav->seek_event = gst_event_new_newsegment (!update, wav->segment_rate,
GST_FORMAT_TIME, start_time, stop_time, 0); GST_FORMAT_TIME, start_time, stop_time, start_time);
if (flush) if (flush)
gst_pad_push_event (wav->srcpad, gst_event_new_flush_stop ()); gst_pad_push_event (wav->srcpad, gst_event_new_flush_stop ());
@ -855,7 +855,8 @@ gst_wavparse_stream_headers (GstWavParse * wav)
/* Initial discont */ /* Initial discont */
wav->seek_event = gst_event_new_newsegment (FALSE, 1.0, wav->seek_event = gst_event_new_newsegment (FALSE, 1.0,
GST_FORMAT_TIME, wav->segment_start, wav->segment_stop, 0); GST_FORMAT_TIME,
wav->segment_start, wav->segment_stop, wav->segment_start);
return GST_FLOW_OK; return GST_FLOW_OK;