mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
avidemux: remove dead code
sub may not be NULL in this switch, there is a bail out just before it if so. Coverity 206098
This commit is contained in:
parent
937269d02e
commit
c6acd6368b
1 changed files with 10 additions and 14 deletions
|
@ -2023,6 +2023,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
|
|||
gst_riff_vprp *vprp = NULL;
|
||||
GstEvent *event;
|
||||
gchar *stream_id;
|
||||
GstMapInfo map;
|
||||
|
||||
element = GST_ELEMENT_CAST (avi);
|
||||
|
||||
|
@ -2216,8 +2217,6 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
|
|||
break;
|
||||
case GST_RIFF_TAG_strn:
|
||||
g_free (stream->name);
|
||||
if (sub != NULL) {
|
||||
GstMapInfo map;
|
||||
|
||||
gst_buffer_map (sub, &map, GST_MAP_READ);
|
||||
stream->name = g_strndup ((gchar *) map.data, map.size);
|
||||
|
@ -2229,9 +2228,6 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
|
|||
avi->globaltags = gst_tag_list_new_empty ();
|
||||
gst_tag_list_add (avi->globaltags, GST_TAG_MERGE_REPLACE,
|
||||
GST_TAG_TITLE, stream->name, NULL);
|
||||
} else {
|
||||
stream->name = g_strdup ("");
|
||||
}
|
||||
GST_DEBUG_OBJECT (avi, "stream name: %s", stream->name);
|
||||
break;
|
||||
case GST_RIFF_IDIT:
|
||||
|
|
Loading…
Reference in a new issue