avidemux: do not try to add a tag with tag_name set to NULL

This can happen if there are subtitles in the stream, leading to
an assertion
This commit is contained in:
Thiago Santos 2014-03-03 16:38:45 -03:00
parent 70de0e4e99
commit dee861630a

View 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 ();