bilboed gst-plugins-base: gst-plugins-base/ gst-plugins-base/gst/playback/ gst-plugins-base/sys/v4l/

[email protected] Fri, 12 Dec 2008 02:54:59 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-plugins-base
Changes by:     bilboed
Date:           Fri Dec 12 2008  10:54:59 UTC

Log message:
* gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_finalize):
Free the factory array when finalizing.
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_base_init):
Use a GstStaticPadTemplate since the src pad caps are fixed.

Modified files:
    .               : ChangeLog
    gst/playback    : gsturidecodebin.c
    sys/v4l         : gstv4lsrc.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.4248&r2=1.4249
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/playback/gsturidecodebin.c.diff?r1=1.21&r2=1.22
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/sys/v4l/gstv4lsrc.c.diff?r1=1.109&r2=1.110

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v
retrieving revision 1.4248
retrieving revision 1.4249
diff -u -d -r1.4248 -r1.4249
--- ChangeLog	12 Dec 2008 07:17:19 -0000	1.4248
+++ ChangeLog	12 Dec 2008 10:54:37 -0000	1.4249
@@ -1,5 +1,12 @@
 2008-12-12  Edward Hervey  <[email protected]>
 
+	* gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_finalize):
+	Free the factory array when finalizing.
+	* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_base_init):
+	Use a GstStaticPadTemplate since the src pad caps are fixed.
+
+2008-12-12  Edward Hervey  <[email protected]>
 	* ext/vorbis/vorbisenc.c: (gst_vorbis_enc_base_init),
 	(gst_vorbis_enc_init):
 	Make vorbisenc's pad template behave like vorbisdec's. Fixes a leak with
Index: gsturidecodebin.c
RCS file: /cvs/gstreamer/gst-plugins-base/gst/playback/gsturidecodebin.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- gsturidecodebin.c	24 Nov 2008 20:25:24 -0000	1.21
+++ gsturidecodebin.c	12 Dec 2008 10:54:41 -0000	1.22
@@ -432,6 +432,10 @@
   g_mutex_free (dec->lock);
   g_free (dec->uri);
   g_free (dec->encoding);
+  if (dec->factories) {
+    g_value_array_free (dec->factories);
+    dec->factories = NULL;
+  }
   G_OBJECT_CLASS (parent_class)->finalize (obj);
 }
Index: gstv4lsrc.c
RCS file: /cvs/gstreamer/gst-plugins-base/sys/v4l/gstv4lsrc.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- gstv4lsrc.c	22 Mar 2008 15:00:53 -0000	1.109
+++ gstv4lsrc.c	12 Dec 2008 10:54:45 -0000	1.110
@@ -53,6 +53,11 @@
 GST_BOILERPLATE (GstV4lSrc, gst_v4lsrc, GstV4lElement, GST_TYPE_V4LELEMENT);
+static GstStaticPadTemplate v4l_src_template = GST_STATIC_PAD_TEMPLATE ("src",
+    GST_PAD_SRC,
+    GST_PAD_ALWAYS,
+    GST_STATIC_CAPS ("ANY")
+    );
 /* basesrc methods */
 static gboolean gst_v4lsrc_start (GstBaseSrc * src);
@@ -77,8 +82,7 @@
   gst_element_class_set_details (gstelement_class, &gst_v4lsrc_details);
   gst_element_class_add_pad_template (gstelement_class,
-      gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
-          gst_caps_new_any ()));
+      gst_static_pad_template_get (&v4l_src_template));
 static void

------------------------------------------------------------------------------
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/