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
This commit is contained in:
parent
50140388d2
commit
0a57441908
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user