Commit 7bd3943b authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

rtptheorapay: do not discard downstream flow return

parent 53928a74
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment