projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4957cc7
)
rtptheorapay: If flushing a packet failed, go out of the loop immediately
author
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Aug 2015 15:42:22 +0000
(17:42 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Aug 2015 15:43:03 +0000
(17:43 +0200)
gst/rtp/gstrtptheorapay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtptheorapay.c
b/gst/rtp/gstrtptheorapay.c
index
334be07
..
5e95d0d
100644
(file)
--- a/
gst/rtp/gstrtptheorapay.c
+++ b/
gst/rtp/gstrtptheorapay.c
@@
-651,6
+651,9
@@
gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
if (flush)
ret = gst_rtp_theora_pay_flush_packet (rtptheorapay);
+ if (ret != GST_FLOW_OK)
+ goto done;
+
/* create new packet if we must */
if (!rtptheorapay->packet) {
gst_rtp_theora_pay_init_packet (rtptheorapay, TDT, timestamp);
@@
-720,10
+723,11
@@
gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT,
if (duration != GST_CLOCK_TIME_NONE)
rtptheorapay->payload_duration += duration;
}
- } while (size);
+ } while (size
&& ret == GST_FLOW_OK
);
if (rtp.buffer)
gst_rtp_buffer_unmap (&rtp);
+done:
return ret;
}