まず、CustomVideoPlayer.mmとVideoPlayerPlugin.mmを
Build PhaseのCompile Sourcesで、「-fno-objc-arc」をつけてARCから除外。
次に、CustomVideoPlayer.mmを修正。
CustomVideoPlayer.mm
AVPlayerStatus status =[[change objectForKey:NSKeyValueChangeNewKey] integerValue];
を
CustomVideoPlayer.mm
AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue];
にする。
CustomVideoPlayer.mm
_lastFrameTimestamp = _curFrameTimestamp;
curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, (int)_videoSize.width, (int)_videoSize.height);
CustomVideoPlayer.mm
_lastFrameTimestamp = _curFrameTimestamp;
size_t w, h;
w =(int)_videoSize.width;
h =(int)_videoSize.height;
curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, &w, &h);
にする。