mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Elements must have different names.
Original commit message from CVS: Elements must have different names.
This commit is contained in:
parent
3a985d4159
commit
2e0c571d6f
1 changed files with 3 additions and 1 deletions
|
@ -33,11 +33,13 @@ void handoff_sink(GstElement *sink, GstBuffer *buf, gpointer user_data) {
|
|||
GstElement *identity_add(GstPipeline *pipeline, GstElement *first, int count) {
|
||||
GstElement *last, *ident;
|
||||
int i;
|
||||
char buf[20];
|
||||
|
||||
last = first;
|
||||
|
||||
for (i=0; i<count; i++) {
|
||||
ident = gst_elementfactory_make("identity","identity");
|
||||
snprintf(buf, 20, "identity_%03d", i);
|
||||
ident = gst_elementfactory_make("identity",buf);
|
||||
g_return_val_if_fail(ident != NULL,NULL);
|
||||
gtk_object_set(GTK_OBJECT(ident),"silent",TRUE,NULL);
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(ident));
|
||||
|
|
Loading…
Reference in a new issue