From 7bd3943bb920ea86562dca54e635473cf0d9f88b Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 4 May 2010 16:57:35 +0200 Subject: [PATCH] rtptheorapay: do not discard downstream flow return --- gst/rtp/gstrtptheorapay.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst/rtp/gstrtptheorapay.c b/gst/rtp/gstrtptheorapay.c index b436c45c02..94a1e2187b 100644 --- a/gst/rtp/gstrtptheorapay.c +++ b/gst/rtp/gstrtptheorapay.c @@ -473,7 +473,7 @@ static GstFlowReturn gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT, guint8 * data, guint size, GstClockTime timestamp, GstClockTime duration) { - GstFlowReturn ret; + GstFlowReturn ret = GST_FLOW_OK; guint newsize; guint packet_len; GstClockTime newduration; @@ -499,7 +499,7 @@ gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT, if (rtptheorapay->packet) flush |= (rtptheorapay->payload_TDT != TDT); if (flush) - gst_rtp_theora_pay_flush_packet (rtptheorapay); + ret = gst_rtp_theora_pay_flush_packet (rtptheorapay); /* create new packet if we must */ if (!rtptheorapay->packet) { @@ -510,8 +510,6 @@ gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT, ppos = payload + rtptheorapay->payload_pos; fragmented = FALSE; - ret = GST_FLOW_OK; - /* put buffer in packet, it either fits completely or needs to be fragmented * over multiple RTP packets. */ while (size) {