change the name of the main function so that we can call it externally

This commit is contained in:
Gregory John Casamento 2022-04-08 23:45:11 -04:00
parent 4d9e2a6ac5
commit 27a3d500f6
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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,