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:
983f57d
)
rtpvorbispay: If flushing a packet failed, go out of the loop immediately
author
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Aug 2015 15:41:02 +0000
(17:41 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Aug 2015 15:43:03 +0000
(17:43 +0200)
gst/rtp/gstrtpvorbispay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvorbispay.c
b/gst/rtp/gstrtpvorbispay.c
index
de03f20
..
22327a1
100644
(file)
--- a/
gst/rtp/gstrtpvorbispay.c
+++ b/
gst/rtp/gstrtpvorbispay.c
@@
-629,6
+629,9
@@
gst_rtp_vorbis_pay_payload_buffer (GstRtpVorbisPay * rtpvorbispay, guint8 VDT,
if (flush)
ret = gst_rtp_vorbis_pay_flush_packet (rtpvorbispay);
+ if (ret != GST_FLOW_OK)
+ goto done;
+
/* create new packet if we must */
if (!rtpvorbispay->packet) {
gst_rtp_vorbis_pay_init_packet (rtpvorbispay, VDT, timestamp);
@@
-698,11
+701,13
@@
gst_rtp_vorbis_pay_payload_buffer (GstRtpVorbisPay * rtpvorbispay, guint8 VDT,
if (duration != GST_CLOCK_TIME_NONE)
rtpvorbispay->payload_duration += duration;
}
- } while (size);
+ } while (size
&& ret == GST_FLOW_OK
);
if (rtp.buffer)
gst_rtp_buffer_unmap (&rtp);
+done:
+
return ret;
}