[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: [gst-devel] signal in multithreaded program
From: Benjamin Otte <in7y118 () public ! uni-hamburg ! de>
Date: 2004-06-30 10:45:44
Message-ID: Pine.A41.4.44.0406301242570.62350-100000 () public ! uni-hamburg ! de
[Download RAW message or body]
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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic