mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 06:14:32 +00:00
19a5b20752
This unbreaks compiling command line player and libmpv at the same time. The problem was that doing so silently disabled the OSX application thing - but the command line player can not use the vo_opengl Cocoa backend without it. The OSX application code is basically dead in libmpv, but it's not that much code anyway. If you want a mpv binary that does not create an OSX application singleton (and creates a menu etc.), you must disable cocoa completely, as cocoa can't be used anyway in this case.
30 lines
1.0 KiB
Objective-C
30 lines
1.0 KiB
Objective-C
/*
|
|
* This file is part of mpv.
|
|
*
|
|
* mpv is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* mpv is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with mpv. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#include "osdep/macosx_application.h"
|
|
|
|
@interface Application : NSApplication
|
|
- (void)initialize_menu;
|
|
- (void)registerSelector:(SEL)selector forKey:(MPMenuKey)key;
|
|
- (void)stopPlayback;
|
|
|
|
@property(nonatomic, retain) NSMutableDictionary *menuItems;
|
|
@property(nonatomic, retain) NSArray *files;
|
|
@property(nonatomic, assign) size_t openCount;
|
|
@end
|