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.
This commit is contained in:
Wim Taymans 2005-10-24 14:59:55 +00:00
parent cfadd55297
commit a878cbdfe1
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2005-10-24 Wim Taymans <wim@fluendo.com>
* 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 <wim@fluendo.com> 2005-10-24 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c: * gst-libs/gst/audio/gstbaseaudiosink.c:

View file

@ -363,8 +363,6 @@ gst_base_audio_sink_get_offset (GstBaseAudioSink * sink)
sample = (segdone + 1) * sps; sample = (segdone + 1) * sps;
} }
g_print ("diff: %d\n", diff);
return sample; 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_DEBUG ("time %" GST_TIME_FORMAT ", offset %llu, start %" GST_TIME_FORMAT,
GST_TIME_ARGS (time), in_offset, GST_TIME_ARGS (bsink->segment_start)); 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); render_offset = gst_base_audio_sink_get_offset (sink);
goto no_sync; goto no_sync;
} }