From c6a9c1d8783db78eb07acf1465b7bdfdd13e0dcc Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 15:37:55 +0100 Subject: [PATCH] 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 --- gst/asfmux/gstasfobjects.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/asfmux/gstasfobjects.c b/gst/asfmux/gstasfobjects.c index b9de741c6f..798ec6425a 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; }