mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
6bf9f4bd77
commit
9189cdcb1d
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue