wtay gst-plugins-good: gst-plugins-good/ gst-plugins-good/gst/rtp/

[email protected] Mon, 8 Dec 2008 04:36:35 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-plugins-good
Changes by:     wtay
Date:           Mon Dec 08 2008  12:36:35 UTC

Log message:
* 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.

Modified files:
    .               : ChangeLog
    gst/rtp         : gstrtpmp4vpay.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.3849&r2=1.3850
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/rtp/gstrtpmp4vpay.c.diff?r1=1.32&r2=1.33

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v
retrieving revision 1.3849
retrieving revision 1.3850
diff -u -d -r1.3849 -r1.3850
--- ChangeLog	7 Dec 2008 19:22:47 -0000	1.3849
+++ ChangeLog	8 Dec 2008 12:36:18 -0000	1.3850
@@ -1,3 +1,10 @@
+2008-12-08  Wim Taymans  <[email protected]>
+
+	* 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  <[email protected]>
 
 	Patch by: Brian Cameron <brian.cameron at sun dot com>
Index: gstrtpmp4vpay.c
RCS file: /cvs/gstreamer/gst-plugins-good/gst/rtp/gstrtpmp4vpay.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- gstrtpmp4vpay.c	25 Nov 2008 18:03:00 -0000	1.32
+++ gstrtpmp4vpay.c	8 Dec 2008 12:36:21 -0000	1.33
@@ -283,6 +283,12 @@
    * 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) {

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose