rtptheorapay: do not discard downstream flow return
This commit is contained in:
parent
53928a74fa
commit
7bd3943bb9
@ -473,7 +473,7 @@ static GstFlowReturn
|
|||||||
gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
|
gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
|
||||||
guint8 * data, guint size, GstClockTime timestamp, GstClockTime duration)
|
guint8 * data, guint size, GstClockTime timestamp, GstClockTime duration)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
guint newsize;
|
guint newsize;
|
||||||
guint packet_len;
|
guint packet_len;
|
||||||
GstClockTime newduration;
|
GstClockTime newduration;
|
||||||
@ -499,7 +499,7 @@ gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
|
|||||||
if (rtptheorapay->packet)
|
if (rtptheorapay->packet)
|
||||||
flush |= (rtptheorapay->payload_TDT != TDT);
|
flush |= (rtptheorapay->payload_TDT != TDT);
|
||||||
if (flush)
|
if (flush)
|
||||||
gst_rtp_theora_pay_flush_packet (rtptheorapay);
|
ret = gst_rtp_theora_pay_flush_packet (rtptheorapay);
|
||||||
|
|
||||||
/* create new packet if we must */
|
/* create new packet if we must */
|
||||||
if (!rtptheorapay->packet) {
|
if (!rtptheorapay->packet) {
|
||||||
@ -510,8 +510,6 @@ gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
|
|||||||
ppos = payload + rtptheorapay->payload_pos;
|
ppos = payload + rtptheorapay->payload_pos;
|
||||||
fragmented = FALSE;
|
fragmented = FALSE;
|
||||||
|
|
||||||
ret = GST_FLOW_OK;
|
|
||||||
|
|
||||||
/* put buffer in packet, it either fits completely or needs to be fragmented
|
/* put buffer in packet, it either fits completely or needs to be fragmented
|
||||||
* over multiple RTP packets. */
|
* over multiple RTP packets. */
|
||||||
while (size) {
|
while (size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user