avidemux: do not try to add a tag with tag_name set to NULL
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 3 Mar 2014 19:38:45 +0000 (16:38 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 4 Mar 2014 23:29:45 +0000 (20:29 -0300)
This can happen if there are subtitles in the stream, leading to
an assertion

gst/avi/gstavidemux.c

index 2dc5631..74922cc 100644 (file)
@@ -2430,7 +2430,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
   gst_caps_unref (caps);
 
   /* make tags */
-  if (codec_name) {
+  if (codec_name && tag_name) {
     if (!stream->taglist)
       stream->taglist = gst_tag_list_new_empty ();