Changeset 3196a099a488880b4ad878b3f5e248fad31a59c7
- Timestamp:
- 27/04/08 22:10:44
(6 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1209327044 +0200
- git-parent:
[de4216e304f2d442ad44d4b9314722581e6e7ff4]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1209327044 +0200
- Message:
Hack to fix the compilation on 10.4. This should actually be covered by configure, which complains about missing headers, but doesn't disable this module properly.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r449fd28 |
r3196a09 |
|
| 44 | 44 | #import <OpenGL/OpenGL.h> |
|---|
| 45 | 45 | |
|---|
| | 46 | #ifdef CALayer |
|---|
| | 47 | |
|---|
| 46 | 48 | /* On OS X, use GL_TEXTURE_RECTANGLE_EXT instead of GL_TEXTURE_2D. |
|---|
| 47 | 49 | This allows sizes which are not powers of 2 */ |
|---|
| … | … | |
| 135 | 137 | static int CreateVout( vlc_object_t *p_this ) |
|---|
| 136 | 138 | { |
|---|
| | 139 | /* This module is Leopard only */ |
|---|
| | 140 | #ifdef __APPLE__ |
|---|
| | 141 | long minorMacVersion; |
|---|
| | 142 | if( Gestalt( gestaltSystemVersionMinor, &minorMacVersion ) == noErr ) |
|---|
| | 143 | { |
|---|
| | 144 | if( minorMacVersion < 6 ) |
|---|
| | 145 | { |
|---|
| | 146 | msg_Warn( p_vout, "current osx version is 10.%ld, non-suitable for OpenglLayer video output", minorMacVersion ); |
|---|
| | 147 | return VLC_ENOOBJ; |
|---|
| | 148 | } |
|---|
| | 149 | } |
|---|
| | 150 | else |
|---|
| | 151 | { |
|---|
| | 152 | msg_Warn( p_vout, "couldn't get OS version" ); |
|---|
| | 153 | return VLC_EGENERIC; |
|---|
| | 154 | } |
|---|
| | 155 | #endif |
|---|
| | 156 | |
|---|
| 137 | 157 | vout_thread_t *p_vout = (vout_thread_t *)p_this; |
|---|
| 138 | 158 | vout_sys_t *p_sys; |
|---|
| … | … | |
| 516 | 536 | } |
|---|
| 517 | 537 | @end |
|---|
| | 538 | |
|---|
| | 539 | #endif |
|---|