avvidenc: Fix compiler errors in the previous commit

The declaration of 'const char *klass' was shadowing a function
argument.
This commit is contained in:
Arun Raghavan 2017-03-22 12:55:40 +05:30
parent 2e25f166fc
commit a3b7aebf6b

View file

@ -126,7 +126,7 @@ gst_ffmpegvidenc_base_init (GstFFMpegVidEncClass * klass)
GstPadTemplate *srctempl = NULL, *sinktempl = NULL;
GstCaps *srccaps = NULL, *sinkcaps = NULL;
gchar *longname, *description;
const gchar *klass;
const gchar *classification;
in_plugin =
(AVCodec *) g_type_get_qdata (G_OBJECT_CLASS_TYPE (klass),
@ -136,11 +136,11 @@ gst_ffmpegvidenc_base_init (GstFFMpegVidEncClass * klass)
/* construct the element details struct */
longname = g_strdup_printf ("libav %s encoder", in_plugin->long_name);
description = g_strdup_printf ("libav %s encoder", in_plugin->name);
klass =
classification =
gst_ffmpeg_codecid_is_image (in_plugin->id) ? "Codec/Encoder/Image" :
"Codec/Encoder/Video";
gst_element_class_set_metadata (element_class, longname,
klass, description,
classification, description,
"Wim Taymans <wim.taymans@gmail.com>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
g_free (longname);