Skip to content

Commit 27a3d50

Browse files
committed
change the name of the main function so that we can call it externally
1 parent 4d9e2a6 commit 27a3d50

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Source/NSMovieView.m

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ - (NSMovie*) movie
158158

159159
- (void) start: (id)sender
160160
{
161+
/*
161162
// If the locks exists this instance is already playing
162163
if (_readLock != nil && _playbackLock != nil)
163164
{
@@ -195,6 +196,7 @@ - (void) stop: (id)sender
195196
196197
// Set to MOVIE_SHOULD_PLAY so that thread isn't blocked.
197198
[_readLock unlockWithCondition: MOVIE_SHOULD_PLAY];
199+
*/
198200
}
199201

200202
- (BOOL) isPlaying

Tools/video/VideoOutputSink.m

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
#define INBUF_SIZE 4096
6363

64+
int video_main(NSMovie *movie, NSMovieView *view);
65+
6466
@interface VideoOutputSink : NSObject <GSVideoSink>
6567
{
6668
AVCodec *_codec;
@@ -248,6 +250,11 @@ - (void)close
248250
}
249251
}
250252

253+
- (void) play
254+
{
255+
256+
}
257+
251258
- (BOOL)playBytes: (void *)bytes length: (NSUInteger)length
252259
{
253260
int ret = av_parser_parse2(_parser, _context, &_pkt->data, &_pkt->size,

0 commit comments

Comments
 (0)