xvimagesink: only try to set XV_ITURBT_709 port attribute if it exists
authorTim-Philipp Müller <tim@centricular.com>
Thu, 11 Sep 2014 21:19:05 +0000 (22:19 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 11 Sep 2014 21:58:16 +0000 (22:58 +0100)
commit7e78fe0d1e3ef24a56695926a3e560c7fd1b1956
treee25d4c220c050ce24f7c12e4024cd06eb5b3464c
parent3657929e1f804710bf123d0fa2b3a7dd73116239
xvimagesink: only try to set XV_ITURBT_709 port attribute if it exists

Don't try to set port attribute that's not advertised by the
adaptor. Fixes videotestsrc ! xvimagesink aborting with

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  151 (XVideo)
  Minor opcode of failed request:  13 ()

on intel HD4600 graphics with kernel 3.16, xserver 1.15,
intel driver 2.21.15.
sys/xvimage/xvcontext.c
sys/xvimage/xvcontext.h