From 540245894f3678e76673db0091e254024119fa98 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 14 Jun 2012 10:43:56 +0200 Subject: [PATCH] theoradepay: fix buffer memory The memory was added to the input buffer instead of the output buffer. --- gst/rtp/gstrtptheoradepay.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c index eff07461ed..5c6fe82742 100644 --- a/gst/rtp/gstrtptheoradepay.c +++ b/gst/rtp/gstrtptheoradepay.c @@ -541,11 +541,9 @@ gst_rtp_theora_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) /* create buffer for packet */ if (G_UNLIKELY (to_free)) { - outbuf = gst_buffer_new (); - gst_buffer_append_memory (buf, - gst_memory_new_wrapped (0, to_free, - (payload - to_free) + length, payload - to_free, length, to_free, - g_free)); + outbuf = + gst_buffer_new_wrapped_full (0, to_free, (payload - to_free) + length, + payload - to_free, length, to_free, g_free); to_free = NULL; } else { outbuf = gst_buffer_new_and_alloc (length);