[gst-devel] "Could not open audio device for playback" error if creating/destructing pipeline from multiple threads

segr segr at is-nn.ru
Thu Oct 22 15:26:08 CEST 2009

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

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-tp26009881p26009881.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

More information about the gstreamer-devel mailing list