[gst-devel] signal in multithreaded program

Christophe Fergeau teuf at gnome.org
Thu Jul 1 01:15:00 CEST 2004


Hi,

You know about http://developer.gnome.org/doc/API/2.0/gdk/gdk-
Threads.html ,do you ?

Christophe

On jeu, 2004-07-01 at 08:56 +0100, Frank Cheng wrote:
> Hi, Thanks for the response. I have been chasing the problem and finally
> locate it in the Gtk functions. Some extra work has to be done to make
> the Gtk work properly in multi-threaded program.
> 
> Cheers,
> Frank
> 
> 
> On Wed, 2004-06-30 at 11:45, Benjamin Otte wrote:
> > I'd say you're either missing something in your code or spider screws up
> > somewhere. But without seeing that code it's not that easy to say.
> > *hinthint*
> > gst-launch -v { filesrc location=/your/file ! spider ! { queue !
> > ffcolorspace ! fakesink } }  should work though (as in print out lots of
> > lines about buffers arriving on fakesink.
> > 
> > Benjamin
> > 
> > 
> > On Wed, 30 Jun 2004, Frank Cheng wrote:
> > 
> > > Hello,
> > >
> > > I am writing a program to display a piece of video. Gstreamer is used as
> > > the multimedia framework and Gtk is used to make the GUI. I tried a
> > > multithreaded method but got some problems. Please help.
> > >
> > > In the main thread, I added a  "filesrc" and a "spider". Then after the
> > > spider, I created another thread, and put a "queue", a  "ffcolorspace"
> > > and a "fakesink".  So I could do the decoder work in the main thread and
> > > the colorspace conversion in the other thread.
> > >
> > > To get the data out from this pipeline, I linked a callback function,
> > > which dealt with the video data, to the "handoff" signal of the
> > > fakesink. Note the fakesink is in the new thread.
> > >
> > > However, the program never runs. It hangs after the pipeline is built.
> > > It seems that it stayed in the "gst_iterate", but no data is pass
> > > through this fakesink. The callback function has never been called. I
> > > guess the "handoff" signal in the new thread is somehow lost in somewhere.
> > >
> > > Please help me.
> > >
> > > Cheers,
> > > Frank
> > >
> > >
> > >
> > > ***********************************************************************************************
> > > The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only.
> > >
> > > This mail or any response may be monitored by Sony United Kingdom Limited. (6)
> > > ***********************************************************************************************
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email sponsored by Black Hat Briefings & Training.
> > > Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> > > digital self defense, top technical experts, no vendor pitches,
> > > unmatched networking opportunities. Visit www.blackhat.com
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> > >
> 
> 
> 
> ***********************************************************************************************
> The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. 
> 
> This email and any response may be monitored by Sony United Kingdom Limited.
> (04)
> ***********************************************************************************************
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040701/ce128fce/attachment.pgp>


More information about the gstreamer-devel mailing list