mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
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:
parent
9f4609665a
commit
57bcc588e4
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek):
|
||||
|
|
|
@ -731,7 +731,7 @@ gst_wavparse_handle_seek (GstWavParse * wav, gboolean update)
|
|||
GST_TIME_ARGS (stop_time));
|
||||
|
||||
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)
|
||||
gst_pad_push_event (wav->srcpad, gst_event_new_flush_stop ());
|
||||
|
@ -855,7 +855,8 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
|
||||
/* Initial discont */
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue