From 57bcc588e4db76218347403006a7396c41e5958d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Oct 2005 11:50:53 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ gst/wavparse/gstwavparse.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fcc159b4e3..ac7f273240 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-20 Wim Taymans + + * 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 * gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek): diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index af081a0e15..4bd772a358 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -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;