mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/monoscope/gstmonoscope.c: Don't unref buffers of which we've already given away ownership to the adapter.
Original commit message from CVS: * gst/monoscope/gstmonoscope.c: (gst_monoscope_chain): Don't unref buffers of which we've already given away ownership to the adapter.
This commit is contained in:
parent
177751c892
commit
76ff577a41
2 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-08-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/monoscope/gstmonoscope.c: (gst_monoscope_chain):
|
||||
Don't unref buffers of which we've already given away
|
||||
ownership to the adapter.
|
||||
|
||||
2006-08-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/speex/gstspeexdec.c: (speex_dec_chain_parse_comments):
|
||||
|
|
|
@ -345,10 +345,8 @@ gst_monoscope_chain (GstPad * pad, GstBuffer * inbuf)
|
|||
/* do negotiation if not done yet, so ->spf etc. is set */
|
||||
if (GST_PAD_CAPS (monoscope->srcpad) == NULL) {
|
||||
flow_ret = get_buffer (monoscope, &outbuf);
|
||||
if (flow_ret != GST_FLOW_OK) {
|
||||
gst_buffer_unref (inbuf);
|
||||
if (flow_ret != GST_FLOW_OK)
|
||||
goto out;
|
||||
}
|
||||
gst_buffer_unref (outbuf);
|
||||
outbuf = NULL;
|
||||
}
|
||||
|
@ -401,10 +399,8 @@ gst_monoscope_chain (GstPad * pad, GstBuffer * inbuf)
|
|||
}
|
||||
|
||||
flow_ret = get_buffer (monoscope, &outbuf);
|
||||
if (flow_ret != GST_FLOW_OK) {
|
||||
gst_buffer_unref (inbuf);
|
||||
if (flow_ret != GST_FLOW_OK)
|
||||
goto out;
|
||||
}
|
||||
|
||||
memcpy (GST_BUFFER_DATA (outbuf), pixels, monoscope->outsize);
|
||||
|
||||
|
|
Loading…
Reference in a new issue