[gst-devel] "Could not open audio device for playback" error if creating/destructing pipeline from multiple threads
segr
segr at is-nn.ru
Mon Oct 26 10:10:03 CET 2009
I suppose that some thing like the following occurs:
1. When starting multiple streams, multiple requests to device are sent;
2. When two requests (for example to close and to open device) are executed
in the same time the first locks the device than the second is trying to
lock and fails, because the device is locked.
Can it be error on ALSA layer???
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-tp26009881p26056375.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list