GNOME Bugzilla – Bug 678415
directsoundsink: stuck if usb output device is unplugged duing play XP
Last modified: 2015-12-11 10:43:31 UTC
On Windows XP SP3 machine. Using USB headsets. If the device is unplugged code gets stuck at gstdirectsoundsink.c@ gst_directsound_sink_write @ goto calculate_freesize; The program goes in an infinite loop. Any attempt to shutdown the pipeline using gst_element_set_state(pipe,GST_STATE_NULL) is stuck. How to reproduce: Prerequisite: Windows XP service pack 3, USB sound output device as primary device. 1. Create a pipeline playing audio where sink element is directsoundsink. 2. Play the pipeline. 3. Unplug the USB Result: The pipeline is stuck. Setting pipeline to NULL doesn't work. No Problem on Windows 7.
It should probably check if the free size in the directsound ringbuffer increases over time, and if it doesn't for some time just abort.
*** This bug has been marked as a duplicate of bug 734098 ***