wtay gstreamer: gstreamer/ gstreamer/gst/

[email protected]
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gstreamer
Changes by:     wtay
Date:           Fri Nov 21 2008  16:49:02 UTC

Log message:
* gst/gstpad.c: (gst_pad_accept_caps):
Avoid getting the acceptcaps function too early.

Modified files:
    .               : ChangeLog
    gst             : gstpad.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.4168&r2=1.4169
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstpad.c.diff?r1=1.585&r2=1.586

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v
retrieving revision 1.4168
retrieving revision 1.4169
diff -u -d -r1.4168 -r1.4169
--- ChangeLog	21 Nov 2008 08:08:56 -0000	1.4168
+++ ChangeLog	21 Nov 2008 16:48:45 -0000	1.4169
@@ -1,5 +1,10 @@
 2008-11-21  Wim Taymans  <[email protected]>
 
+	* gst/gstpad.c: (gst_pad_accept_caps):
+	Avoid getting the acceptcaps function too early.
+
+2008-11-21  Wim Taymans  <[email protected]>
 	* tools/gst-launch.c: (event_loop):
 	Make gst-launch handle LATENCY messages and make it recalculate the
 	latency.
Index: gstpad.c
RCS file: /cvs/gstreamer/gstreamer/gst/gstpad.c,v
retrieving revision 1.585
retrieving revision 1.586
diff -u -d -r1.585 -r1.586
--- gstpad.c	20 Oct 2008 13:32:07 -0000	1.585
+++ gstpad.c	21 Nov 2008 16:48:48 -0000	1.586
@@ -2311,13 +2311,13 @@
   /* lock for checking the existing caps */
   GST_OBJECT_LOCK (pad);
-  acceptfunc = GST_PAD_ACCEPTCAPSFUNC (pad);
   GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "accept caps of %p", caps);
   /* The current caps on a pad are trivially acceptable */
   if (G_LIKELY ((existing = GST_PAD_CAPS (pad)))) {
     if (caps == existing || gst_caps_is_equal (caps, existing))
       goto is_same_caps;
   }
+  acceptfunc = GST_PAD_ACCEPTCAPSFUNC (pad);
   GST_OBJECT_UNLOCK (pad);
   if (G_LIKELY (acceptfunc)) {

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.