Commit a08e7254 authored by Sebastian Dröge's avatar Sebastian Dröge

flxdec: Unref and unmap buffers in all code paths as needed

https://bugzilla.gnome.org/show_bug.cgi?id=775888
parent 1ea9735a
...@@ -902,10 +902,9 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) ...@@ -902,10 +902,9 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
} }
} }
need_more_data:
gst_buffer_unmap (input, &map_info); gst_buffer_unmap (input, &map_info);
gst_buffer_unref (input); gst_buffer_unref (input);
need_more_data:
return res; return res;
/* ERRORS */ /* ERRORS */
...@@ -914,8 +913,8 @@ parse_error: ...@@ -914,8 +913,8 @@ parse_error:
("%s", "Failed to parse stream"), (NULL)); ("%s", "Failed to parse stream"), (NULL));
unmap_input_error: unmap_input_error:
gst_buffer_unmap (input, &map_info); gst_buffer_unmap (input, &map_info);
gst_buffer_unref (input);
error: error:
gst_buffer_unref (input);
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment