flacdec: Actually output the pending buffer.. and not a blank one.
It was previously sending the bogus buffer which was returned from the bufferalloc (required for reverse negotiation apparently) instead of the pending buffer.
This commit is contained in:
parent
9bf294c310
commit
e8cbbd22f8
@ -938,10 +938,11 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
|
|||||||
GST_BUFFER_OFFSET (flacdec->pending),
|
GST_BUFFER_OFFSET (flacdec->pending),
|
||||||
GST_BUFFER_SIZE (flacdec->pending),
|
GST_BUFFER_SIZE (flacdec->pending),
|
||||||
GST_BUFFER_CAPS (flacdec->pending), &outbuf);
|
GST_BUFFER_CAPS (flacdec->pending), &outbuf);
|
||||||
if (ret == GST_FLOW_OK)
|
if (ret == GST_FLOW_OK) {
|
||||||
gst_pad_push (flacdec->srcpad, outbuf);
|
gst_pad_push (flacdec->srcpad, flacdec->pending);
|
||||||
|
gst_buffer_unref (outbuf);
|
||||||
|
}
|
||||||
|
|
||||||
gst_buffer_unref (flacdec->pending);
|
|
||||||
outbuf = flacdec->pending = NULL;
|
outbuf = flacdec->pending = NULL;
|
||||||
flacdec->segment.last_stop += flacdec->pending_samples;
|
flacdec->segment.last_stop += flacdec->pending_samples;
|
||||||
flacdec->pending_samples = 0;
|
flacdec->pending_samples = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user