vaapih264enc: fix log message
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 17 Jan 2020 13:22:48 +0000 (14:22 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 19 Jan 2020 09:46:13 +0000 (10:46 +0100)
Before the log wasn't processed because wrong instance pointer.

gst/vaapi/gstvaapiencode_h264.c

index 3a119bc..f623f67 100644 (file)
@@ -361,8 +361,6 @@ retry:
     ret = TRUE;
   }
 
-  GST_INFO_OBJECT (encode, "out caps %" GST_PTR_FORMAT, caps);
-
   if (!ret)
     GST_LOG ("There is no compatible profile in the requested caps.");
 
@@ -390,6 +388,8 @@ gst_vaapiencode_h264_get_caps (GstVaapiEncode * base_encode)
   if (profile != GST_VAAPI_PROFILE_UNKNOWN)
     set_compatible_profile (encode, caps, profile);
 
+  GST_INFO_OBJECT (base_encode, "out caps %" GST_PTR_FORMAT, caps);
+
   /* XXX: update level information */
   return caps;
 }