[MOVED FROM BAD 091/134] vp8enc: Remove unused and useless variable in tags handling
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Aug 2011 08:39:26 +0000 (10:39 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:27:15 +0000 (15:27 +0200)
ext/vp8/gstvp8enc.c

index 7832526..2e61fd3 100644 (file)
@@ -857,7 +857,6 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
     GstStructure *s;
     GstBuffer *stream_hdr, *vorbiscomment;
     const GstTagList *iface_tags;
-    GstTagList *tags;
     GValue array = { 0, };
     GValue value = { 0, };
     s = gst_caps_get_structure (caps, 0);
@@ -892,8 +891,8 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
         gst_tag_setter_get_tag_list (GST_TAG_SETTER (base_video_encoder));
     if (iface_tags) {
       vorbiscomment =
-          gst_tag_list_to_vorbiscomment_buffer ((iface_tags) ? iface_tags :
-          tags, (const guint8 *) "OVP80\2 ", 7,
+          gst_tag_list_to_vorbiscomment_buffer (iface_tags,
+          (const guint8 *) "OVP80\2 ", 7,
           "Encoded with GStreamer vp8enc " PACKAGE_VERSION);
 
       GST_BUFFER_FLAG_SET (vorbiscomment, GST_BUFFER_FLAG_IN_CAPS);