From: Víctor Manuel Jáquez Leal Date: Tue, 24 May 2022 12:47:43 +0000 (+0200) Subject: va: Avoid unused variable if logging is disabled. X-Git-Tag: 1.22.0~1582 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8433bab0b549cd37cf6f46bd24f472c36713c02d;p=platform%2Fupstream%2Fgstreamer.git va: Avoid unused variable if logging is disabled. Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/va/plugin.c b/subprojects/gst-plugins-bad/sys/va/plugin.c index edc4425..dc8fbd1 100644 --- a/subprojects/gst-plugins-bad/sys/va/plugin.c +++ b/subprojects/gst-plugins-bad/sys/va/plugin.c @@ -159,12 +159,6 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device, { GHashTableIter iter; gpointer key, value; - const gchar *str; - - if (entrypoint == VAEntrypointEncSliceLP) - str = "low power "; - else - str = ""; g_hash_table_iter_init (&iter, encoders); while (g_hash_table_iter_next (&iter, &key, &value)) { @@ -179,7 +173,8 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device, &srccaps, &sinkcaps)) continue; - GST_LOG ("%d encoder %scodec: %" GST_FOURCC_FORMAT, profiles->len, str, + GST_LOG ("%d encoder %scodec: %" GST_FOURCC_FORMAT, profiles->len, + (entrypoint == VAEntrypointEncSliceLP) ? "low power " : "", GST_FOURCC_ARGS (codec)); GST_LOG ("sink caps: %" GST_PTR_FORMAT, sinkcaps); GST_LOG ("src caps: %" GST_PTR_FORMAT, srccaps);