mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
Properly restore name of movie input
This commit is contained in:
parent
5b591cf4bb
commit
a63c01b009
1 changed files with 21 additions and 2 deletions
|
|
@ -179,14 +179,20 @@
|
|||
{
|
||||
|
||||
self.player.currentlyPlaying = nowPlayingInput;
|
||||
self.captureName = nowPlayingInput.shortName;
|
||||
|
||||
} else {
|
||||
CSFFMpegInput *firstItem = self.player.inputQueue.firstObject;
|
||||
|
||||
self.captureName = firstItem.shortName;
|
||||
}
|
||||
|
||||
|
||||
_savedTime = [aDecoder decodeDoubleForKey:@"savedTime"];
|
||||
self.useCurrentPosition = [aDecoder decodeBoolForKey:@"useCurrentPosition"];
|
||||
|
||||
self.playWhenLive = [aDecoder decodeBoolForKey:@"playWhenLive"];
|
||||
self.repeat = [aDecoder decodeIntForKey:@"repeat"];
|
||||
NSLog(@"INIT WITH CODER DONE");
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
@ -290,6 +296,10 @@
|
|||
if (firstItem)
|
||||
{
|
||||
self.captureName = firstItem.shortName;
|
||||
if (self.pcmPlayer)
|
||||
{
|
||||
self.pcmPlayer.name = firstItem.shortName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -473,11 +483,20 @@
|
|||
{
|
||||
self.player.asbd = &_asbd;
|
||||
self.player.pcmPlayer = self.pcmPlayer;
|
||||
self.pcmPlayer.name = self.player.currentlyPlaying.shortName;
|
||||
|
||||
if (self.player.currentlyPlaying)
|
||||
{
|
||||
self.pcmPlayer.name = self.player.currentlyPlaying.shortName;
|
||||
} else {
|
||||
CSFFMpegInput *firstItem = self.player.inputQueue.firstObject;
|
||||
|
||||
self.pcmPlayer.name = firstItem.shortName;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
-(float)duration
|
||||
{
|
||||
float startpos = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue