From cbadb0b4aedb4974acbb7533472a4b14e0839f0b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 27 Jul 2024 06:52:25 +0530 Subject: [PATCH] vtenc: Log warnings when setting a property fails Part-of: --- subprojects/gst-plugins-bad/sys/applemedia/vtenc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c b/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c index 15758ec277..9c1ea807f8 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c +++ b/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c @@ -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; }