Added some INFO in gstelements
authorWim Taymans <wim.taymans@gmail.com>
Sat, 30 Dec 2000 02:47:11 +0000 (02:47 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sat, 30 Dec 2000 02:47:11 +0000 (02:47 +0000)
Original commit message from CVS:
Added some INFO in gstelements
Reverted pad names in gstfakesrc back to what they were

gst/elements/gstelements.c
gst/elements/gstfakesrc.c
plugins/elements/gstelements.c
plugins/elements/gstfakesrc.c

index 8d2f17d..9cf4092 100644 (file)
@@ -96,7 +96,7 @@ GstPlugin *plugin_init (GModule *module)
     i++;
   }
 
-  gst_info ("gstelements: loaded %d standard elements\n", i);
+  INFO (0,"gstelements: loaded %d standard elements", i);
 
   return plugin;
 }
index d23ff08..a206cad 100644 (file)
@@ -142,7 +142,7 @@ gst_fakesrc_init (GstFakeSrc *fakesrc)
   fakesrc->numsrcpads = 1;
 
   // create our first output pad
-  pad = gst_pad_new("src1",GST_PAD_SRC);
+  pad = gst_pad_new("src",GST_PAD_SRC);
   gst_pad_set_get_function(pad,gst_fakesrc_get);
   gst_element_add_pad(GST_ELEMENT(fakesrc),pad);
   fakesrc->srcpads = g_slist_append(NULL,pad);
@@ -189,10 +189,10 @@ gst_fakesrc_set_arg (GtkObject *object, GtkArg *arg, guint id)
       new_numsrcs = GTK_VALUE_INT (*arg);
       if (new_numsrcs > src->numsrcpads) {
         while (src->numsrcpads != new_numsrcs) {
-          src->numsrcpads++;
           pad = gst_pad_new(g_strdup_printf("src%d",src->numsrcpads),GST_PAD_SRC);
           gst_element_add_pad(GST_ELEMENT(src),pad);
           src->srcpads = g_slist_append(src->srcpads,pad);
+          src->numsrcpads++;
         }
         gst_fakesrc_update_functions (src);
       }
index 8d2f17d..9cf4092 100644 (file)
@@ -96,7 +96,7 @@ GstPlugin *plugin_init (GModule *module)
     i++;
   }
 
-  gst_info ("gstelements: loaded %d standard elements\n", i);
+  INFO (0,"gstelements: loaded %d standard elements", i);
 
   return plugin;
 }
index d23ff08..a206cad 100644 (file)
@@ -142,7 +142,7 @@ gst_fakesrc_init (GstFakeSrc *fakesrc)
   fakesrc->numsrcpads = 1;
 
   // create our first output pad
-  pad = gst_pad_new("src1",GST_PAD_SRC);
+  pad = gst_pad_new("src",GST_PAD_SRC);
   gst_pad_set_get_function(pad,gst_fakesrc_get);
   gst_element_add_pad(GST_ELEMENT(fakesrc),pad);
   fakesrc->srcpads = g_slist_append(NULL,pad);
@@ -189,10 +189,10 @@ gst_fakesrc_set_arg (GtkObject *object, GtkArg *arg, guint id)
       new_numsrcs = GTK_VALUE_INT (*arg);
       if (new_numsrcs > src->numsrcpads) {
         while (src->numsrcpads != new_numsrcs) {
-          src->numsrcpads++;
           pad = gst_pad_new(g_strdup_printf("src%d",src->numsrcpads),GST_PAD_SRC);
           gst_element_add_pad(GST_ELEMENT(src),pad);
           src->srcpads = g_slist_append(src->srcpads,pad);
+          src->numsrcpads++;
         }
         gst_fakesrc_update_functions (src);
       }