diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-10-22 21:41:20 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-10-22 21:46:56 +0100 |
commit | 0a574419085b1b65f88e518a397c290e7d2ca89f (patch) | |
tree | 717e53ce0395b13fd053d44e1547b1c545d47772 | |
parent | 50140388d2b62d32dd9d0c071e3051ebc5b4083b (diff) | |
download | gstreamer-plugins-bad-0a574419085b1b65f88e518a397c290e7d2ca89f.tar.gz |
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
-rw-r--r-- | ext/soundtouch/gstpitch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index 7ce865cd2..fd36d2102 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; |