mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
oggmux: test for failure to return tag
It should really not happen unless the tag list it corrupt, but the API returns a failure code so we may as well use it. Coverity 1139595
This commit is contained in:
parent
54f38edd15
commit
1b0f13ebf2
1 changed files with 7 additions and 3 deletions
|
@ -1287,9 +1287,13 @@ gst_ogg_mux_add_fisbone_message_header_from_tags (GstOggMux * mux,
|
|||
gchar *tmp;
|
||||
if (n)
|
||||
g_string_append (s, ", ");
|
||||
gst_tag_list_get_string_index (tags, tag, n, &tmp);
|
||||
g_string_append (s, tmp);
|
||||
g_free (tmp);
|
||||
if (gst_tag_list_get_string_index (tags, tag, n, &tmp)) {
|
||||
g_string_append (s, tmp);
|
||||
g_free (tmp);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (mux, "Tag %s index %u was not found (%u total)", tag,
|
||||
n, size);
|
||||
}
|
||||
}
|
||||
gst_ogg_mux_add_fisbone_message_header (mux, bw, header, s->str);
|
||||
g_string_free (s, TRUE);
|
||||
|
|
Loading…
Reference in a new issue