Skip to content

Commit

Permalink
SGTracks: Infos.
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Oct 30, 2019
1 parent 5f88b86 commit 79736a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions SGPlayer/Classes/Core/SGAsset/SGMutableTrack.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ - (instancetype)initWithType:(SGMediaType)type index:(NSInteger)index

- (void *)coreptr
{
void *ret = [super coreptr];
return [self core];
}

- (AVStream *)core
{
void *ret = [super core];
if (ret) {
return ret;
}
for (SGTrack *obj in self->_subTracks) {
if (obj.coreptr) {
ret = obj.coreptr;
if (obj.core) {
ret = obj.core;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion SGPlayer/Classes/Core/SGAsset/SGTrack+Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import "SGTrack.h"
#import "SGFFmpeg.h"
#import "SGMutableTrack.h"
#import "avformat.h"

@interface SGTrack ()

Expand Down

0 comments on commit 79736a6

Please sign in to comment.