mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
vtenc: Log warnings when setting a property fails
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7232>
This commit is contained in:
parent
f8711239e4
commit
cbadb0b4ae
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue