On Tue, 13 May 2008 00:56:41 +0200 raoul <[EMAIL PROTECTED]> babbled:
> > Hi, > > I'm using a lot emotion with the gstreamer backend to play some network > stream and display them in my app. And I'm facing something really bad for > the user experience when gstreamer try to open a bad network stream (because > the network is down, the stream is not available anymore, ...). What happens > is that emotion_object_file_set() blocks. > In fact, emotion blocks because gstreamer calls connect() and there is no > response from the network device. > This is bad because my app is frozen for a long time. > > There is one solution to avoid this, it's using a thread with pipes like the > xine backend. I know raster is not a big fan of threads, so I'm wondering if > there isn't any other way to avoid gstreamer to block... i'm not - but i did actually do all that thread madness for the xine backend - more as a necessity than something i liked. there isn't much of a choice unless gstreamer provides a way of doing this asynchronously. libxine really was 100% designed to be controlled by multiple threads and so it was a requirement to split it up. not doing so could easily lead to deadlocks within xine's infrastructure. > If there isn't a better approach, I will do it with a thread. > > Any good idea? > > Regards, > > -- > ------------------------ > Raoul Hecky > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
