mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
change the name of the main function so that we can call it externally
This commit is contained in:
parent
4d9e2a6ac5
commit
27a3d500f6
2 changed files with 9 additions and 0 deletions
|
@ -158,6 +158,7 @@ enum
|
|||
|
||||
- (void) start: (id)sender
|
||||
{
|
||||
/*
|
||||
// If the locks exists this instance is already playing
|
||||
if (_readLock != nil && _playbackLock != nil)
|
||||
{
|
||||
|
@ -195,6 +196,7 @@ enum
|
|||
|
||||
// Set to MOVIE_SHOULD_PLAY so that thread isn't blocked.
|
||||
[_readLock unlockWithCondition: MOVIE_SHOULD_PLAY];
|
||||
*/
|
||||
}
|
||||
|
||||
- (BOOL) isPlaying
|
||||
|
|
|
@ -61,6 +61,8 @@
|
|||
|
||||
#define INBUF_SIZE 4096
|
||||
|
||||
int video_main(NSMovie *movie, NSMovieView *view);
|
||||
|
||||
@interface VideoOutputSink : NSObject <GSVideoSink>
|
||||
{
|
||||
AVCodec *_codec;
|
||||
|
@ -248,6 +250,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void) play
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (BOOL)playBytes: (void *)bytes length: (NSUInteger)length
|
||||
{
|
||||
int ret = av_parser_parse2(_parser, _context, &_pkt->data, &_pkt->size,
|
||||
|
|
Loading…
Reference in a new issue