dshowsrcwrapper: fix DirectShow caps negotiation and set capture pin caps
authorJerome Laheurte <jlaheurte@quividi.com>
Fri, 22 Apr 2016 12:51:31 +0000 (14:51 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 23 Apr 2016 14:21:44 +0000 (15:21 +0100)
commitc7e0e8d6ab59fc410a7e9dcdfdacfbc26f6949d7
treeb6a84c766206fc515b95ed08f849236180c27da3
parent26dfb7db834a4e0b7967b5746d63d19424e0589e
dshowsrcwrapper: fix DirectShow caps negotiation and set capture pin caps

Some cameras (IDS) have broken DirectShow drivers which incorrectly fill some
fields in the VIDEOINFOHEADER structure; comparison between suggested and
supported media types in CBaseRenderer should ignore deprecated and/or not
essential fields; additionaly explicitely setting the mediatype for the capture
pin before trying to connect it works around another IDS driver bug, and
should have been already done anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=765428
sys/dshowsrcwrapper/gstdshowfakesink.cpp
sys/dshowsrcwrapper/gstdshowvideosrc.cpp