gstreamer/sys
Nirbheek Chauhan 2d44b53ff6 directsoundsink: Fix corner case causing large CPU usage
We were unnecessarily looping/goto-ing repeatedly when we had exactly
the amount of data as the free space, and also when the free space was
too small. This, as it turns out, is a very common scenario with
Directsound on Windows.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773681

We have to do polling here because the event notification API that
Directsound exposes cannot be used with live playback since all events
must be registered in advance with the capture buffer, you cannot
add/remove them once playback has begun. Directsoundsrc had the same
problem.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=781249
2017-05-08 16:02:46 +02:00
..
directsound directsoundsink: Fix corner case causing large CPU usage 2017-05-08 16:02:46 +02:00
oss good: use new gst_element_class_add_static_pad_template() 2016-03-24 14:32:20 +02:00
oss4 Fix plugin filenames to match plugin names 2017-03-08 20:04:20 -05:00
osxaudio osxaudio: Distribute device provider files 2016-09-07 15:35:06 -04:00
osxvideo osxvideo: Remove QuickTime references. 2016-08-31 05:52:37 +10:00
sunaudio good: use new gst_element_class_add_static_pad_template() 2016-03-24 14:32:20 +02:00
v4l2 v4l2object: Copy timestamp when importing buffers 2017-04-10 12:49:39 -04:00
waveform waveformsink: Fix Memory leak using GST_PTR_FORMAT 2016-10-20 13:14:10 +03:00
ximage Add support for Meson as alternative/parallel build system 2016-08-20 11:21:12 +01:00
Makefile.am v4l2: Fix typo V4L_DIR intead of V4L2_DIR 2014-03-15 18:41:16 +01:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:21:12 +01:00