From f9e43d039a2b7f37e2a226d2bf49ba99f6b4a10d Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 8 May 2017 17:53:37 +0200 Subject: [PATCH] Fix AC3 encoder thread name. --- MP42/MP42AC3AudioEncoder.m | 8 ++++---- MP42/MP42AudioEncoder.m | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MP42/MP42AC3AudioEncoder.m b/MP42/MP42AC3AudioEncoder.m index 0cade45..b13d582 100644 --- a/MP42/MP42AC3AudioEncoder.m +++ b/MP42/MP42AC3AudioEncoder.m @@ -52,7 +52,7 @@ typedef struct AudioFileIO @property (nonatomic, readonly) NSUInteger bitrate; -@property (nonatomic, readonly) NSThread *decoderThread; +@property (nonatomic, readonly) NSThread *thread; @property (nonatomic, readonly) MP42Fifo *inputSamplesBuffer; @property (nonatomic, readonly) MP42Fifo *outputSamplesBuffer; @@ -257,9 +257,9 @@ typedef struct AudioFileIO - (void)start { - _decoderThread = [[NSThread alloc] initWithTarget:self selector:@selector(threadMainRoutine) object:nil]; - [_decoderThread setName:@"AudioToolbox Audio Encoder"]; - [_decoderThread start]; + _thread = [[NSThread alloc] initWithTarget:self selector:@selector(threadMainRoutine) object:nil]; + [_thread setName:@"FFmpeg Audio Encoder"]; + [_thread start]; } #pragma mark - Public methods diff --git a/MP42/MP42AudioEncoder.m b/MP42/MP42AudioEncoder.m index 68a9a04..a3f8f52 100644 --- a/MP42/MP42AudioEncoder.m +++ b/MP42/MP42AudioEncoder.m @@ -48,7 +48,7 @@ typedef struct AudioFileIO @property (nonatomic, readonly) AudioConverterRef encoder; @property (nonatomic, readonly) NSUInteger bitrate; -@property (nonatomic, readonly) NSThread *decoderThread; +@property (nonatomic, readonly) NSThread *thread; @property (nonatomic, readonly) MP42Fifo *inputSamplesBuffer; @property (nonatomic, readonly) MP42Fifo *outputSamplesBuffer; @@ -291,9 +291,9 @@ typedef struct AudioFileIO - (void)start { - _decoderThread = [[NSThread alloc] initWithTarget:self selector:@selector(threadMainRoutine) object:nil]; - [_decoderThread setName:@"AudioToolbox Audio Encoder"]; - [_decoderThread start]; + _thread = [[NSThread alloc] initWithTarget:self selector:@selector(threadMainRoutine) object:nil]; + [_thread setName:@"AudioToolbox Audio Encoder"]; + [_thread start]; } #pragma mark - Public methods