removal of //-style comments don't link plugins to core libs -- the versioning is...
authorAndy Wingo <wingo@pobox.com>
Tue, 19 Mar 2002 04:09:41 +0000 (04:09 +0000)
committerAndy Wingo <wingo@pobox.com>
Tue, 19 Mar 2002 04:09:41 +0000 (04:09 +0000)
Original commit message from CVS:
* removal of //-style comments
* don't link plugins to core libs -- the versioning is done internally to the plugins with the plugin_info struct,
and symbol resolution is lazy, so we can always know if a plugin can be loaded by the plugin_info data. in theory.

.gitmodules [new file with mode: 0644]
common [new submodule]
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegenc.c

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..1ba590b
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "common"]
+        path = common
+        url = git://anongit.freedesktop.org/gstreamer/common
diff --git a/common b/common
new file mode 160000 (submodule)
index 0000000..de68be0
--- /dev/null
+++ b/common
@@ -0,0 +1 @@
+Subproject commit de68be0c16181a66f42fad60319e273097f60245
index f851719..6726a5b 100644 (file)
@@ -94,7 +94,7 @@ static void   gst_ffmpegdec_get_property      (GObject *object, guint prop_id, GValue *
 
 static GstElementClass *parent_class = NULL;
 
-//static guint gst_ffmpegdec_signals[LAST_SIGNAL] = { 0 };
+/*static guint gst_ffmpegdec_signals[LAST_SIGNAL] = { 0 }; */
 
 static void
 gst_ffmpegdec_class_init (GstFFMpegDecClass *klass)
@@ -173,7 +173,7 @@ gst_ffmpegdec_init(GstFFMpegDec *ffmpegdec)
 static void
 gst_ffmpegdec_chain_audio (GstPad *pad, GstBuffer *inbuf)
 {
-  //GstFFMpegDec *ffmpegdec = (GstFFMpegDec *)(gst_pad_get_parent (pad));
+  /*GstFFMpegDec *ffmpegdec = (GstFFMpegDec *)(gst_pad_get_parent (pad)); */
   gpointer data;
   gint size;
 
@@ -332,19 +332,19 @@ gst_ffmpegdec_register (GstPlugin *plugin)
     else {
       goto next;
     }
-    // construct the type
+    /* construct the type */
     type_name = g_strdup_printf("ffmpeg%s_%s", codec_type, in_plugin->name);
 
-    // if it's already registered, drop it
+    /* if it's already registered, drop it */
     if (g_type_from_name(type_name)) {
       g_free(type_name);
       goto next;
     }
 
-    // create the gtk type now
+    /* create the gtk type now */
     type = g_type_register_static(GST_TYPE_ELEMENT, type_name , &typeinfo, 0);
 
-    // construct the element details struct
+    /* construct the element details struct */
     details = g_new0 (GstElementDetails,1);
     details->longname = g_strdup (in_plugin->name);
     details->klass = "Codec/FFMpeg";
@@ -357,7 +357,7 @@ gst_ffmpegdec_register (GstPlugin *plugin)
                         GINT_TO_POINTER (type), 
                         (gpointer) in_plugin);
 
-    // register the plugin with gstreamer
+    /* register the plugin with gstreamer */
     factory = gst_elementfactory_new(type_name,type,details);
     g_return_val_if_fail(factory != NULL, FALSE);
 
index 8e752c3..8369683 100644 (file)
@@ -119,7 +119,7 @@ static void gst_ffmpegenc_get_property      (GObject *object, guint prop_id, GValue *
 
 static GstElementClass *parent_class = NULL;
 
-//static guint gst_ffmpegenc_signals[LAST_SIGNAL] = { 0 };
+/*static guint gst_ffmpegenc_signals[LAST_SIGNAL] = { 0 }; */
 
 static void
 gst_ffmpegenc_class_init (GstFFMpegEncClass *klass)
@@ -309,7 +309,7 @@ gst_ffmpegenc_chain_audio (GstPad *pad, GstBuffer *inbuf)
     data += frame_size;
   }
     
-  // save leftover
+  /* save leftover */
   if (size) {
      memcpy (ffmpegenc->buffer + ffmpegenc->buffer_pos, data, size);
      ffmpegenc->buffer_pos += size;
@@ -507,19 +507,19 @@ gst_ffmpegenc_register (GstPlugin *plugin)
     else {
       goto next;
     }
-    // construct the type
+    /* construct the type */
     type_name = g_strdup_printf("ffmpeg%s_%s", codec_type, in_plugin->name);
 
-    // if it's already registered, drop it
+    /* if it's already registered, drop it */
     if (g_type_from_name(type_name)) {
       g_free(type_name);
       goto next;
     }
 
-    // create the gtk type now
+    /* create the gtk type now */
     type = g_type_register_static(GST_TYPE_ELEMENT, type_name , &typeinfo, 0);
 
-    // construct the element details struct
+    /* construct the element details struct */
     details = g_new0 (GstElementDetails,1);
     details->longname = g_strdup (in_plugin->name);
     details->klass = "Codec/FFMpeg";
@@ -532,7 +532,7 @@ gst_ffmpegenc_register (GstPlugin *plugin)
                         GINT_TO_POINTER (type), 
                         (gpointer) in_plugin);
 
-    // register the plugin with gstreamer
+    /* register the plugin with gstreamer */
     factory = gst_elementfactory_new(type_name,type,details);
     g_return_val_if_fail(factory != NULL, FALSE);