From 0a574419085b1b65f88e518a397c290e7d2ca89f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 22 Oct 2012 21:41:20 +0100 Subject: [PATCH] pitch: fix for start times > 0 Fixes buffering and playback of streams that start with a non-0 timestamp in totem (which has a 'pitch' element before pulsesink). Example URI: http://lobostv.lobocast.org.es:8004/lobostv.ogg Still breaks with chained oggs, on second chain. https://bugzilla.gnome.org/show_bug.cgi?id=686391 --- ext/soundtouch/gstpitch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index 7ce865c..fd36d21 100644 --- a/ext/soundtouch/gstpitch.cc +++ b/ext/soundtouch/gstpitch.cc @@ -667,7 +667,7 @@ gst_pitch_src_query (GstPad * pad, GstObject * parent, GstQuery * query) /* this function returns FALSE if not enough data is known to transform the * segment into proper downstream values. If the function does return false - * the sgement should be stalled until enough information is available. + * the segment should be stalled until enough information is available. * If the funtion returns TRUE, event will be replaced by the new downstream * compatible event. */ @@ -901,7 +901,7 @@ gst_pitch_change_state (GstElement * element, GstStateChange transition) case GST_STATE_CHANGE_NULL_TO_READY: break; case GST_STATE_CHANGE_READY_TO_PAUSED: - pitch->next_buffer_time = 0; + pitch->next_buffer_time = GST_CLOCK_TIME_NONE; pitch->next_buffer_offset = 0; pitch->priv->st->clear (); pitch->min_latency = pitch->max_latency = 0; -- 2.7.4