From ddedf6b797f8c757d101057b63e2bce095e486b6 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 17 Apr 2013 07:50:27 +0200 Subject: [PATCH] flac: add more logging --- ext/flac/gstflacenc.c | 3 ++- ext/flac/gstflactag.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 1822ee5adc..3e6cd8a21e 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -1202,7 +1202,8 @@ gst_flac_enc_sink_event (GstAudioEncoder * enc, GstEvent * event) flacenc = GST_FLAC_ENC (enc); - GST_DEBUG ("Received %s event on sinkpad", GST_EVENT_TYPE_NAME (event)); + GST_DEBUG ("Received %s event on sinkpad, %" GST_PTR_FORMAT, + GST_EVENT_TYPE_NAME (event), event); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_EOS: diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index a1e2976b26..9ef2674102 100644 --- a/ext/flac/gstflactag.c +++ b/ext/flac/gstflactag.c @@ -199,6 +199,8 @@ gst_flac_tag_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) gst_adapter_push (tag->adapter, buffer); + GST_LOG_OBJECT (pad, "state: %d", tag->state); + /* Initial state, we don't even know if we are dealing with a flac file */ if (tag->state == GST_FLAC_TAG_STATE_INIT) { GstBuffer *id_buffer; @@ -428,7 +430,7 @@ gst_flac_tag_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) } cleanup: - + GST_LOG_OBJECT (pad, "state: %d, ret: %d", tag->state, ret); return ret; /* ERRORS */