summaryrefslogtreecommitdiff
path: root/gst/asfmux
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 15:41:11 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 15:41:11 +0100
commit747542762ebcfa92760ab3ba2281c5be8b5fade4 (patch)
treecf9a7f24c603531530faec9e21bbe7a622ff27c7 /gst/asfmux
parentc6a9c1d8783db78eb07acf1465b7bdfdd13e0dcc (diff)
downloadgstreamer-plugins-bad-747542762ebcfa92760ab3ba2281c5be8b5fade4.tar.gz
asfmux: remove unnecessary test
We've been dereferencing that object like there's no tomorrow in the code just before that. Coverity 206369
Diffstat (limited to 'gst/asfmux')
-rw-r--r--gst/asfmux/gstasfmux.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c
index ee0435c79..791193e1a 100644
--- a/gst/asfmux/gstasfmux.c
+++ b/gst/asfmux/gstasfmux.c
@@ -1331,11 +1331,9 @@ gst_asf_mux_start_file (GstAsfMux * asfmux)
gst_asf_mux_write_ext_content_description (asfmux, &bufdata, asftags->tags);
}
- if (asftags) {
- if (asftags->tags)
- gst_tag_list_unref (asftags->tags);
- g_free (asftags);
- }
+ if (asftags->tags)
+ gst_tag_list_unref (asftags->tags);
+ g_free (asftags);
/* writing header extension objects */
gst_asf_mux_write_header_extension (asfmux, &bufdata, stream_num *