From: Wim Taymans Date: Mon, 8 Dec 2008 12:36:21 +0000 (+0000) Subject: gst/rtp/gstrtpmp4vpay.c: Don't try to push packets before we could find a valid confi... X-Git-Tag: 1.19.3~509^2~10867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90adf4b958e1116272ef96f40f648add46123fc6;p=platform%2Fupstream%2Fgstreamer.git gst/rtp/gstrtpmp4vpay.c: Don't try to push packets before we could find a valid config startcode. Fixes #563509. Original commit message from CVS: * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_flush), (gst_rtp_mp4v_pay_event): Don't try to push packets before we could find a valid config startcode. Fixes #563509. --- diff --git a/ChangeLog b/ChangeLog index 0f680fc..682d5ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-08 Wim Taymans + + * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_flush), + (gst_rtp_mp4v_pay_event): + Don't try to push packets before we could find a valid config + startcode. Fixes #563509. + 2008-12-07 Sebastian Dröge Patch by: Brian Cameron diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c index 01e7f2a..afff75d 100644 --- a/gst/rtp/gstrtpmp4vpay.c +++ b/gst/rtp/gstrtpmp4vpay.c @@ -283,6 +283,12 @@ gst_rtp_mp4v_pay_flush (GstRtpMP4VPay * rtpmp4vpay) * over multiple packets. */ avail = gst_adapter_available (rtpmp4vpay->adapter); + if (rtpmp4vpay->config == NULL) { + /* when we don't have a config yet, flush things out */ + gst_adapter_flush (rtpmp4vpay->adapter, avail); + avail = 0; + } + ret = GST_FLOW_OK; while (avail > 0) {