Skip to content

Commit

Permalink
apple: include IOSurface.h only for macOS wang-bin#986
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Nov 11, 2017
1 parent 428cb59 commit a2afdf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codec/video/SurfaceInteropIOSurface.mm
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ @interface EAGLContext()
- (BOOL)texImageIOSurface:(IOSurfaceRef)ioSurface target:(NSUInteger)target internalFormat:(NSUInteger)internalFormat width:(uint32_t)width height:(uint32_t)height format:(NSUInteger)format type:(NSUInteger)type plane:(uint32_t)plane invert:(BOOL)invert NS_AVAILABLE_IOS(4_0); // confirmed in iOS5.1
@end
# endif //COREVIDEO_SUPPORTS_IOSURFACE
#else
#include <IOSurface/IOSurface.h>
#endif //Q_OS_IOS

#include <IOSurface/IOSurface.h>
#include "QtAV/VideoFrame.h"
#include "opengl/OpenGLHelper.h"

Expand Down

0 comments on commit a2afdf0

Please sign in to comment.