mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
flxdec: Unref and unmap buffers in all code paths as needed
https://bugzilla.gnome.org/show_bug.cgi?id=775888
This commit is contained in:
parent
1ea9735afb
commit
a08e72547d
1 changed files with 2 additions and 3 deletions
|
@ -902,10 +902,9 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
}
|
||||
}
|
||||
|
||||
need_more_data:
|
||||
gst_buffer_unmap (input, &map_info);
|
||||
gst_buffer_unref (input);
|
||||
|
||||
need_more_data:
|
||||
return res;
|
||||
|
||||
/* ERRORS */
|
||||
|
@ -914,8 +913,8 @@ parse_error:
|
|||
("%s", "Failed to parse stream"), (NULL));
|
||||
unmap_input_error:
|
||||
gst_buffer_unmap (input, &map_info);
|
||||
gst_buffer_unref (input);
|
||||
error:
|
||||
gst_buffer_unref (input);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue