[0.10] gst-plugins-good: rtpmp2tpay: do not try to flush a packet when no data is available
Tim Müller
tpm at kemper.freedesktop.org
Thu Feb 2 16:09:06 PST 2012
Module: gst-plugins-good
Branch: 0.10
Commit: 2fc76eaa560474adb406dc6b840c036687a18fea
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=2fc76eaa560474adb406dc6b840c036687a18fea
Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date: Mon Jan 30 14:52:37 2012 +0000
rtpmp2tpay: do not try to flush a packet when no data is available
https://bugzilla.gnome.org/show_bug.cgi?id=668874
---
gst/rtp/gstrtpmp2tpay.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gst/rtp/gstrtpmp2tpay.c b/gst/rtp/gstrtpmp2tpay.c
index 060a92f..55ef623 100644
--- a/gst/rtp/gstrtpmp2tpay.c
+++ b/gst/rtp/gstrtpmp2tpay.c
@@ -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 */
More information about the gstreamer-commits
mailing list