From a878cbdfe19145461d8ef49685b35fd9cd8058a6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 24 Oct 2005 14:59:55 +0000 Subject: [PATCH] gst-libs/gst/audio/gstbaseaudiosink.c: Remove g_print Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_get_offset), (gst_base_audio_sink_render): Remove g_print Use sync property from baseclass to disable sync. --- ChangeLog | 7 +++++++ gst-libs/gst/audio/gstbaseaudiosink.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 419701d..1164257 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,13 @@ * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_get_offset), (gst_base_audio_sink_render): + Remove g_print + Use sync property from baseclass to disable sync. + +2005-10-24 Wim Taymans + + * gst-libs/gst/audio/gstbaseaudiosink.c: + (gst_base_audio_sink_get_offset), (gst_base_audio_sink_render): Buffers with no timestamps get aligned with previous buffers or on underrun, played ASAP. diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index c9b99ad..5dbfc94 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -363,8 +363,6 @@ gst_base_audio_sink_get_offset (GstBaseAudioSink * sink) sample = (segdone + 1) * sps; } - g_print ("diff: %d\n", diff); - return sample; } @@ -406,7 +404,9 @@ gst_base_audio_sink_render (GstBaseSink * bsink, GstBuffer * buf) GST_DEBUG ("time %" GST_TIME_FORMAT ", offset %llu, start %" GST_TIME_FORMAT, GST_TIME_ARGS (time), in_offset, GST_TIME_ARGS (bsink->segment_start)); - if (!GST_CLOCK_TIME_IS_VALID (time)) { + /* if not valid timestamp or we don't need to sync, try to play + * sample ASAP */ + if (!GST_CLOCK_TIME_IS_VALID (time) || !bsink->sync) { render_offset = gst_base_audio_sink_get_offset (sink); goto no_sync; } -- 2.7.4