diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2012-06-12 23:51:51 +1000 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2012-06-12 23:52:35 +1000 |
commit | d9740bf9ba870fbcc07ecb048f9561f38c984482 (patch) | |
tree | bd73683ecf920135a082ab5813d20f94db9672ee | |
parent | e729ad1c9c58987984e1220d6323f7bb24a9cae5 (diff) |
audio decoder: Add some debug output for bad caps from children
-rw-r--r-- | gst-libs/gst/audio/gstaudiodecoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index a37d7a7d0..f44cb47d9 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -521,7 +521,7 @@ gst_audio_decoder_set_output_format (GstAudioDecoder * dec, { gboolean res = TRUE; guint old_rate; - GstCaps *caps; + GstCaps *caps = NULL; GstCaps *templ_caps; GST_DEBUG_OBJECT (dec, "Setting output format"); @@ -537,6 +537,8 @@ gst_audio_decoder_set_output_format (GstAudioDecoder * dec, /* Only allow caps that are a subset of the template caps */ templ_caps = gst_pad_get_pad_template_caps (dec->srcpad); if (!gst_caps_is_subset (caps, templ_caps)) { + GST_WARNING_OBJECT (dec, "Requested output format %" GST_PTR_FORMAT + " do not match template %" GST_PTR_FORMAT, caps, templ_caps); gst_caps_unref (caps); gst_caps_unref (templ_caps); goto refuse_caps; |