mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-10 16:32:36 +00:00
Added some INFO in gstelements
Original commit message from CVS: Added some INFO in gstelements Reverted pad names in gstfakesrc back to what they were
This commit is contained in:
parent
9813b0ca37
commit
fbc4098833
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue