summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjep <jep@2b0047a9-a6d8-0310-accf-f7200b2a168c>2012-09-03 15:58:52 +0000
committerjep <jep@2b0047a9-a6d8-0310-accf-f7200b2a168c>2012-09-03 15:58:52 +0000
commit99ee63e1bbbb0a980e72da952146021715cff250 (patch)
tree4a863b942380c41b86b121a47d918933865ce8c8 /src
parent841be9fc411a753eec7b8a65a1bff0af6ab70635 (diff)
* src/flump3dec.c: (gst_flump3dec_decode):
Fixes a regression introduced in rev 2155. The goal in this code is to repeat latest properly decoded frame as error cancelation strategy, then we need to keep the pending_frame reference as long as needed. git-svn-id: https://core.fluendo.com/gstreamer/svn/trunk/gst-fluendo-mp3@2335 2b0047a9-a6d8-0310-accf-f7200b2a168c
Diffstat (limited to 'src')
-rw-r--r--src/flump3dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flump3dec.c b/src/flump3dec.c
index 65d7ecd..755ca0c 100644
--- a/src/flump3dec.c
+++ b/src/flump3dec.c
@@ -400,7 +400,8 @@ gst_flump3dec_decode (GstFluMp3Dec * dec, gboolean more_data)
if (dec->pending_frame != NULL) {
GST_DEBUG_OBJECT (dec, "Bad frame - using previous frame");
- out_buf = gst_buffer_make_writable (dec->pending_frame);
+ out_buf = gst_buffer_create_sub (dec->pending_frame, 0,
+ GST_BUFFER_SIZE (dec->pending_frame));
if (out_buf == NULL) {
ret = GST_FLOW_ERROR;
goto no_buffer;