diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 15:37:55 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 15:39:33 +0100 |
commit | c6a9c1d8783db78eb07acf1465b7bdfdd13e0dcc (patch) | |
tree | 0aae94ac086b192d53f9b52659ac753454ab12ea /gst/asfmux | |
parent | 336767d7796b2ff5c8fd5dc03451aad3dd23906f (diff) | |
download | gstreamer-plugins-bad-c6a9c1d8783db78eb07acf1465b7bdfdd13e0dcc.tar.gz |
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
Diffstat (limited to 'gst/asfmux')
-rw-r--r-- | gst/asfmux/gstasfobjects.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gst/asfmux/gstasfobjects.c b/gst/asfmux/gstasfobjects.c index b9de741c6..798ec6425 100644 --- a/gst/asfmux/gstasfobjects.c +++ b/gst/asfmux/gstasfobjects.c @@ -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; } |