[Bug 756948] New: directsoundsrc - Audio Device not found on Windows (string encoding not honored)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Oct 22 00:42:04 PDT 2015


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

            Bug ID: 756948
           Summary: directsoundsrc - Audio Device not found on Windows
                    (string encoding not honored)
    Classification: Platform
           Product: GStreamer
           Version: 1.6.0
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: zack81 at gmx.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

The 'device-name' property for audio device selection does not honor the
encoding.
The pipeline string is in utf8 and the device name from windows is in the local
code page encoded. So before comparing, we need to convert the device-name to
local 8 bit stringliteral.

The bug was introduced here:
https://bugzilla.gnome.org/show_bug.cgi?id=706574

Problematic code section:

```cpp
if (pGUID && dsoundsrc && dsoundsrc->device_name &&
      !g_strcmp0 (dsoundsrc->device_name, strDesc))
```

-- 
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