[gst-devel] "Could not open audio device for playback" error if creating/destructing pipeline from multiple threads
rmkart
nathankarthik at gmail.com
Thu Oct 29 08:27:28 CET 2009
Whether you try to open audio device in 2 threads simultaneously?
If you have any audio player application that is open also can create a
problem
segr wrote:
>
> Hi, All,
>
> I was testing gstreamer for using it from multiple threads.
> I make the following:
> 1. gst_init;
> 2. start main_loop;
> 3. start while(1) calling thread-function that constructs pipeline,
> starts playing and stop it immediately.
>
> In some cases (I suppose it is any type of race condition), I get the
> following error:
>
> 4: Could not open audio device for playback. Device is being used by
> another application.
>
> Have anybody the same problem?
> I tested both on lenny and squeeze (but haven`t tested sid yet) the
> problem appear from time to time on both versions.
>
> PS: To reproduce the problem I always start testing application for a few
> times before getting an error.
>
--
View this message in context: http://www.nabble.com/%22Could-not-open-audio-device-for-playback%22-error-if-creating-destructing-pipeline-from-multiple-threads-tp26009881p26107943.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list