asfmux: remove unnecessary test

We've been dereferencing that object like there's no tomorrow
in the code just before that.

Coverity 206369
This commit is contained in:
Vincent Penquerc'h 2014-04-09 15:41:11 +01:00
parent c6a9c1d878
commit 747542762e

View file

@ -1331,11 +1331,9 @@ gst_asf_mux_start_file (GstAsfMux * asfmux)
gst_asf_mux_write_ext_content_description (asfmux, &bufdata, asftags->tags); gst_asf_mux_write_ext_content_description (asfmux, &bufdata, asftags->tags);
} }
if (asftags) { if (asftags->tags)
if (asftags->tags) gst_tag_list_unref (asftags->tags);
gst_tag_list_unref (asftags->tags); g_free (asftags);
g_free (asftags);
}
/* writing header extension objects */ /* writing header extension objects */
gst_asf_mux_write_header_extension (asfmux, &bufdata, stream_num * gst_asf_mux_write_header_extension (asfmux, &bufdata, stream_num *