Fixed selecting media type in DShow video capture.
authorArtur Wieczorek <artwik@wp.pl>
Thu, 2 Oct 2014 09:48:47 +0000 (11:48 +0200)
committerArtur Wieczorek <artwik@wp.pl>
Fri, 10 Oct 2014 06:53:48 +0000 (08:53 +0200)
commitde0b46a765829ddc07fbc2ee28d093bad915be8e
tree7daf53c8a5aaf3fd2706cdd1a5093ed1039e9398
parentca5e73a9d0722ce9a1f2c890c040320e9fc1807b
Fixed selecting media type in DShow video capture.

Set correct value of sample size when calling IAMStreamConfig::SetFormat function. For non-RGB media type it can be set to zero value.
(See http://msdn.microsoft.com/en-us/library/windows/desktop/dd373477%28v=vs.85%29.aspx)
modules/videoio/src/cap_dshow.cpp