mpeg4: fix debug info for unsupported profile.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 14:15:40 +0000 (16:15 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 14:23:43 +0000 (16:23 +0200)
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c

index af2945f..84e2020 100644 (file)
@@ -308,7 +308,7 @@ decode_sequence(GstVaapiDecoderMpeg4 *decoder, const guint8 *buf, guint buf_size
         profile = GST_VAAPI_PROFILE_MPEG4_ADVANCED_SIMPLE;
         break;
     default:
-        GST_DEBUG("unsupported profile %d", profile);
+        GST_DEBUG("unsupported profile %d", vos_hdr->profile);
         return GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
     }
     if (priv->profile != profile) {