mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
va: Avoid unused variable if logging is disabled.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2478>
This commit is contained in:
parent
6d6ebbbb36
commit
8433bab0b5
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue