[gst-devel] problem using tee and threads

Zaheer Abbas Merali zaheerabbas at merali.org
Fri Jun 4 02:51:04 CEST 2004

On Fri, 2004-06-04 at 10:27 +0100, Frank Cheng wrote:
> Hello,
> I could use command line to make the following function work:
> "gst-launch filesrc location=~/demo.dv ! spider ! tee name=t1 t1.src0 ! 
> { queue ! xvimagesink  } t1.src1 ! { queue ! xvimagesink}"
> it basically display a piece of video in two windows.
> I am now write a code to do this in C. I request new pad from "tee", and 
> write a callback function to handle the new_pad_created event.  In the  
> callback funtion, new threads are created and added to the main pipeline.
> However, when I run the rogram, error message shows
> "...GStreamer-WARNING **: Name thread is not unique in bin pipeline, not 
> adding"
> It looks as though the second thread could not be added to the main 
> pipeline.
> Am I missing something? Please help.
> Cheers,
> Frank

Hi Frank,

u are probably creating the second thread with the name thread, if u
change that name to thread2 then it'll work.

Take Care

Zaheer Abbas Merali <zaheerabbas at merali.org>

More information about the gstreamer-devel mailing list