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
@ -578,7 +578,6 @@ gst_asf_parse_packet_from_data (guint8 * data, gsize size, GstBuffer * buffer,
|
|||||||
guint32 send_time = 0;
|
guint32 send_time = 0;
|
||||||
guint16 duration = 0;
|
guint16 duration = 0;
|
||||||
gboolean has_keyframe;
|
gboolean has_keyframe;
|
||||||
GstMapInfo map;
|
|
||||||
|
|
||||||
if (packet_size != 0 && size != packet_size) {
|
if (packet_size != 0 && size != packet_size) {
|
||||||
GST_WARNING ("ASF packets should be aligned with buffers");
|
GST_WARNING ("ASF packets should be aligned with buffers");
|
||||||
@ -720,7 +719,6 @@ error:
|
|||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
GST_WARNING ("Error while parsing data packet");
|
GST_WARNING ("Error while parsing data packet");
|
||||||
end:
|
end:
|
||||||
gst_buffer_unmap (buffer, &map);
|
|
||||||
gst_byte_reader_free (reader);
|
gst_byte_reader_free (reader);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user