avfvideosrc: fix build with older SDK not supporting AVDeviceFormat
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 7 Nov 2013 11:20:31 +0000 (12:20 +0100)
committerAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 7 Nov 2013 14:24:28 +0000 (15:24 +0100)
commita2b90eeb8c673af5b53380bdcb328b075a253ca7
tree5f7c175ba9fa51c27188287c64ef9b01fc51063b
parent46a61ea0366ce478cf8117a4137f79d9e8cad6f2
avfvideosrc: fix build with older SDK not supporting AVDeviceFormat

AVDeviceFormat and AVFrameRateRange are available in iOS since 7.0
so we need a more dynamic approach to support compilation with older
SDK's. We use a NSObject to avoid referencing those types and key-value
coding or preformSelector to access properties.
sys/applemedia/avfvideosrc.m