[Bug 774819] New: alsasink: do wait in write() only if really needed

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 21 22:30:35 UTC 2016


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

            Bug ID: 774819
           Summary: alsasink: do wait in write() only if really needed
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: brain at jikos.cz
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

gst_alsasink_write() *always* calls snd_pcm_wait() before writing to ALSA. In
fact the wait is needed only if there is not enough space to write the data.
Since ALSA is open in non-blocking mode snd_pcm_writei() can be called first
hoping there is enough space and wait done only if it returns -EAGAIN.

Doing wait only if needed should reduce the overall number of syscalls and
improve performance at high packet rate.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list