gst-libs/gst/audio/gstbaseaudiosink.c: Always sync on first sample we receive when starting.

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_get_time), (gst_base_audio_sink_preroll),
(gst_base_audio_sink_render), (gst_base_audio_sink_change_state):
Always sync on first sample we receive when starting.
This commit is contained in:
Wim Taymans 2006-02-13 18:49:02 +00:00
parent 8ad81db4b8
commit 16dbdc5c21
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2006-02-13 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_get_time), (gst_base_audio_sink_preroll),
(gst_base_audio_sink_render), (gst_base_audio_sink_change_state):
Always sync on first sample we receive when starting.
2006-02-13 Wim Taymans <wim@fluendo.com>
* gst/playback/gstplaybin.c: (gen_vis_element):

View file

@ -698,10 +698,10 @@ gst_base_audio_sink_change_state (GstElement * element,
}
if (!gst_ring_buffer_open_device (sink->ringbuffer))
goto open_failed;
sink->next_sample = 0;
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
gst_ring_buffer_set_flushing (sink->ringbuffer, FALSE);
sink->next_sample = -1;
break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
{