audiorate: correctly eat empty and dummy buffers
This commit is contained in:
parent
775636e734
commit
133e1cdb56
@ -672,10 +672,10 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send:
|
||||||
if (GST_BUFFER_SIZE (buf) == 0)
|
if (GST_BUFFER_SIZE (buf) == 0)
|
||||||
goto beach;
|
goto beach;
|
||||||
|
|
||||||
send:
|
|
||||||
/* Now calculate parameters for whichever buffer (either the original
|
/* Now calculate parameters for whichever buffer (either the original
|
||||||
* or truncated one) we're pushing. */
|
* or truncated one) we're pushing. */
|
||||||
GST_BUFFER_OFFSET (buf) = audiorate->next_offset;
|
GST_BUFFER_OFFSET (buf) = audiorate->next_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user