diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-04-26 21:26:00 +0100 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:19 -0400 |
commit | d71386a0337c1c1aba1a88ba5108f28d54f62768 (patch) | |
tree | b498ff924e6668af44eac88bfc16425154596f77 /ext/resindvd/rsnaudiomunge.c | |
parent | 0c0be3264d18599ca82d9d892ecb63468637b488 (diff) | |
download | gst-plugins-bad-d71386a0337c1c1aba1a88ba5108f28d54f62768.tar.gz gst-plugins-bad-d71386a0337c1c1aba1a88ba5108f28d54f62768.tar.bz2 gst-plugins-bad-d71386a0337c1c1aba1a88ba5108f28d54f62768.zip |
resindvd: Convert some g_print to GST_LOG_OBJECT and friends, remove some others
Trim down the g_print verbosity.
Diffstat (limited to 'ext/resindvd/rsnaudiomunge.c')
-rw-r--r-- | ext/resindvd/rsnaudiomunge.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/resindvd/rsnaudiomunge.c b/ext/resindvd/rsnaudiomunge.c index d3a1d274..fc7e552f 100644 --- a/ext/resindvd/rsnaudiomunge.c +++ b/ext/resindvd/rsnaudiomunge.c @@ -178,7 +178,8 @@ rsn_audiomunge_chain (GstPad * pad, GstBuffer * buf) RsnAudioMunge *munge = RSN_AUDIOMUNGE (GST_OBJECT_PARENT (pad)); if (!munge->have_audio) { - g_print ("First audio after flush has TS %" GST_TIME_FORMAT "\n", + GST_INFO_OBJECT (munge, + "First audio after flush has TS %" GST_TIME_FORMAT, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf))); } @@ -221,8 +222,8 @@ rsn_audiomunge_make_audio (RsnAudioMunge * munge, memset (GST_BUFFER_DATA (audio_buf), 0, buf_size); - g_print ("Sending %u bytes (%" GST_TIME_FORMAT ") of audio data " - "with TS %" GST_TIME_FORMAT "\n", + GST_LOG_OBJECT (munge, "Sending %u bytes (%" GST_TIME_FORMAT + ") of audio data with TS %" GST_TIME_FORMAT, buf_size, GST_TIME_ARGS (fill_time), GST_TIME_ARGS (start)); ret = gst_pad_push (munge->srcpad, audio_buf); @@ -251,7 +252,7 @@ rsn_audiomunge_handle_dvd_event (RsnAudioMunge * munge, GstEvent * event) * when a new-segment arrives */ munge->in_still = in_still; - g_print ("**** AUDIO MUNGE: still-state now %d\n", munge->in_still); + GST_INFO_OBJECT (munge, "AUDIO MUNGE: still-state now %d", munge->in_still); } } @@ -312,9 +313,9 @@ rsn_audiomunge_sink_event (GstPad * pad, GstEvent * event) } if (segment->accum >= AUDIO_FILL_THRESHOLD || munge->in_still) { - g_print ("*********** Sending audio fill: accum = %" GST_TIME_FORMAT - " still-state=%d\n", GST_TIME_ARGS (segment->accum), - munge->in_still); + GST_DEBUG_OBJECT (munge, + "Sending audio fill: accum = %" GST_TIME_FORMAT " still-state=%d", + GST_TIME_ARGS (segment->accum), munge->in_still); /* Just generate a 100ms silence buffer for now. FIXME: Fill the gap */ if (rsn_audiomunge_make_audio (munge, segment->start, |