mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
rtpmp2tpay: do not try to flush a packet when no data is available
https://bugzilla.gnome.org/show_bug.cgi?id=668874
This commit is contained in:
parent
c16fed2ad9
commit
d651baf05a
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ gst_rtp_mp2t_pay_flush (GstRTPMP2TPay * rtpmp2tpay)
|
|||
GstBuffer *outbuf;
|
||||
|
||||
avail = gst_adapter_available (rtpmp2tpay->adapter);
|
||||
if (avail == 0)
|
||||
return GST_FLOW_OK;
|
||||
outbuf = gst_rtp_buffer_new_allocate (avail, 0, 0);
|
||||
|
||||
/* get payload */
|
||||
|
|
Loading…
Reference in a new issue