vtenc: Log warnings when setting a property fails

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7232>
This commit is contained in:
Nirbheek Chauhan 2024-07-27 06:52:25 +05:30 committed by GStreamer Marge Bot
parent f8711239e4
commit cbadb0b4ae

View file

@ -1836,7 +1836,10 @@ gst_vtenc_session_configure_property_int (GstVTEnc * self,
CFRelease (num);
CFStringGetCString (name, name_str, sizeof (name_str), kCFStringEncodingUTF8);
GST_DEBUG_OBJECT (self, "%s(%d) => %d", name_str, value, (int) status);
if (status != noErr)
GST_WARNING_OBJECT (self, "FAILED: %s(%d) => %d", name_str, value, status);
else
GST_DEBUG_OBJECT (self, "%s(%d) => %d", name_str, value, status);
return status;
}
@ -1854,7 +1857,10 @@ gst_vtenc_session_configure_property_double (GstVTEnc * self,
CFRelease (num);
CFStringGetCString (name, name_str, sizeof (name_str), kCFStringEncodingUTF8);
GST_DEBUG_OBJECT (self, "%s(%f) => %d", name_str, value, (int) status);
if (status != noErr)
GST_WARNING_OBJECT (self, "FAILED: %s(%f) => %d", name_str, value, status);
else
GST_DEBUG_OBJECT (self, "%s(%f) => %d", name_str, value, status);
return status;
}