QT4: Don't strip whitespace from end of dshow device names
Currently QT4 interface cannot open DirectShow capture devices correctly if the device name has whitespaces at end of the name (yeah, I know it is stupid but some manufacturers do that).
For example webcam I have is named
dshow debug: found device: Video Camera
so there is a whitespace at the end, but what QT4 passes forward is
qt4 warning: Input option: dshow-vdev=Video Camera
so the whitespace is stripped and because of this dshow module cannot find the device.
dshow debug: found device: Video Camera
dshow debug: asking for device: Video Camera
dshow error: can't use device: Video Camera, unsupported device type
dshow error: can't open video device
Whitespace is displayed and used correctly in capture dialog, so the MRL edit options text box shows
:dshow-vdev=Video Camera :dshow-adev=
but for some reason whitespace vanishes before input option phase.
Tested with VLC 1.0.3 and VLC 1.1.0-git-20100103-0317 under Win32. If I leave dshow-vdev blank, then the device opens fine, because it is the default one.
dshow debug: found device: Video Camera
dshow debug: asking for default device: Video Camera
dshow debug: asked for Video Camera , binding to Video Camera
dshow debug: using device: Video Camera