flvdemux: Don't write an empty string as a tag

To stop warnings like:

GStreamer-WARNING **: 19:47:48.186: Trying to set empty string on
taglist field 'encoder'. Please file a bug.
This commit is contained in:
Vivia Nikolaidou 2020-04-08 19:49:00 +03:00
parent 6bf9f4bd77
commit 9189cdcb1d

View file

@ -402,6 +402,11 @@ gst_flv_demux_parse_metadata_item (GstFlvDemux * demux, GstByteReader * reader,
s = FLV_GET_STRING (reader);
if (s == NULL)
goto error;
if (!strcmp (s, "")) {
/* Not strictly an error, just an empty string */
g_free (s);
break;
}
GST_DEBUG_OBJECT (demux, "%s => (string) %s", tag_name, s);