mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtpvorbispay: If flushing a packet failed, go out of the loop immediately
This commit is contained in:
parent
983f57dc7d
commit
4957cc7459
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue