After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678415 - directsoundsink: stuck if usb output device is unplugged duing play XP
directsoundsink: stuck if usb output device is unplugged duing play XP
Status: RESOLVED DUPLICATE of bug 734098
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
playback
Depends on:
Blocks:
 
 
Reported: 2012-06-19 15:34 UTC by Tanmay Ambre
Modified: 2015-12-11 10:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tanmay Ambre 2012-06-19 15:34:21 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.
Comment 1 Sebastian Dröge (slomo) 2013-08-21 19:24:22 UTC
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.
Comment 2 Sebastian Dröge (slomo) 2015-12-11 10:43:31 UTC

*** This bug has been marked as a duplicate of bug 734098 ***