mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
asfmux: remove stray gst_buffer_unmap on error path
A previous commit removed the map, and the unmap on the main code path, but not the one on the error path. Coverity 1139930
This commit is contained in:
parent
336767d779
commit
c6a9c1d878
1 changed files with 0 additions and 2 deletions
|
@ -578,7 +578,6 @@ gst_asf_parse_packet_from_data (guint8 * data, gsize size, GstBuffer * buffer,
|
|||
guint32 send_time = 0;
|
||||
guint16 duration = 0;
|
||||
gboolean has_keyframe;
|
||||
GstMapInfo map;
|
||||
|
||||
if (packet_size != 0 && size != packet_size) {
|
||||
GST_WARNING ("ASF packets should be aligned with buffers");
|
||||
|
@ -720,7 +719,6 @@ error:
|
|||
ret = FALSE;
|
||||
GST_WARNING ("Error while parsing data packet");
|
||||
end:
|
||||
gst_buffer_unmap (buffer, &map);
|
||||
gst_byte_reader_free (reader);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue