[gst-cvs] CVS: gstreamer/plugins/mpeg1/system_encode system_encode.c,1.14,1.14.4.1
Andy Wingo
wingo at users.sourceforge.net
Sun Sep 23 15:53:02 PDT 2001
Update of /cvsroot/gstreamer/gstreamer/plugins/mpeg1/system_encode
In directory usw-pr-cvs1:/tmp/cvs-serv6466/plugins/mpeg1/system_encode
Modified Files:
Tag: BRANCH-EVENTS1
system_encode.c
Log Message:
- if you call gst_element_request_pad_by_name() with, say "sink4" as the pad name
and there is a "sink%d" template, the request_new_pad function will be called.
this is to allow for, for example, requesting a certain channel on a multichannel
device.
- to this end, request_new_pad now has the following prototype:
GstPad* (*request_new_pad) (GstElement *element, GstPadTemplate *templ, const gchar *name)
if request_pad_by_name was called with a name like "sink%d" (i.e. no parsing
was necessary) then NULL is passed as 'name'.
- all plugins that use request pads have been changed to the new api.
also, some incremental (untested) alsa updates, switching to the bytestream api...
Index: system_encode.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/plugins/mpeg1/system_encode/system_encode.c,v
retrieving revision 1.14
retrieving revision 1.14.4.1
diff -u -d -r1.14 -r1.14.4.1
--- system_encode.c 2001/08/21 20:16:47 1.14
+++ system_encode.c 2001/09/23 22:52:32 1.14.4.1
@@ -85,7 +85,8 @@
static void gst_system_encode_class_init (System_EncodeClass *klass);
static void gst_system_encode_init (System_Encode *system_encode);
-static GstPad* gst_system_encode_request_new_pad (GstElement *element, GstPadTemplate *templ);
+static GstPad* gst_system_encode_request_new_pad (GstElement *element, GstPadTemplate *templ,
+ const gchar *unused);
static void gst_system_encode_chain (GstPad *pad, GstBuffer *buf);
static void gst_system_encode_set_property (GObject *object, guint prop_id,
@@ -164,7 +165,7 @@
}
static GstPad*
-gst_system_encode_request_new_pad (GstElement *element, GstPadTemplate *templ)
+gst_system_encode_request_new_pad (GstElement *element, GstPadTemplate *templ, const gchar *unused)
{
System_Encode *system_encode;
gchar *name = NULL;
More information about the Gstreamer-commits
mailing list