Commit 0a574419 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

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:

Still breaks with chained oggs, on second chain.
parent 50140388
......@@ -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)
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment