[Bug 748337] ksvideosrc dropping frames

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 22 14:18:08 PDT 2015


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

--- Comment #1 from Philippe Renon <philippe_renon at yahoo.fr> ---
One minor issue I got when building ksvideosrc is that it assumes to be built
in ANSI mode and not UNICODE.

If building with UNICODE all the CreateFile calls fail because they are being
passed regular ansi strings. 
There are a few places were explicit Wide calls are made and the result are
converveted from utf16 to utf8. The resulting utf8 string (i.e. device path) is
then used in CreateFile calls. Those calls fail if CreateFile is defined as
CreateFileW (which is the case if UNICODE is defined)

Fixing this is straightforward : simply replace all three occurrences of
CreateFile with calls to CreateFileA.

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