tests: h264parse: _unmap buffer upon exit

This commit is contained in:
Mark Nauwelaerts 2012-02-13 14:22:42 +01:00
parent bbbdbb536b
commit cf942f4e1f

View file

@ -106,8 +106,10 @@ verify_buffer (buffer_verify_data_s * vdata, GstBuffer * buffer)
gst_buffer_map (buffer, &map, GST_MAP_READ); gst_buffer_map (buffer, &map, GST_MAP_READ);
fail_unless (map.size > 4); fail_unless (map.size > 4);
/* only need to check avc output case */ /* only need to check avc output case */
if (GST_READ_UINT32_BE (map.data) == 0x01) if (GST_READ_UINT32_BE (map.data) == 0x01) {
gst_buffer_unmap (buffer, &map);
return FALSE; return FALSE;
}
/* header is merged in initial frame */ /* header is merged in initial frame */
if (vdata->buffer_counter == 0) { if (vdata->buffer_counter == 0) {
guint8 *data = map.data; guint8 *data = map.data;