triple: fix audio mute state after fast-forwarding in playback

This commit is contained in:
Stefan Seyfried
2012-03-04 18:39:42 +01:00
parent 137948804b
commit 9812df6bba
2 changed files with 5 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ typedef enum
class cAudio
{
friend class cPlayback;
private:
int fd;
bool Muted;

View File

@@ -103,7 +103,8 @@ void cPlayback::Close(void)
if (pesbuf)
free(pesbuf);
pesbuf = NULL;
//Stop();
audioDecoder->do_mute(audioDecoder->Muted, false);
}
bool cPlayback::Start(char *filename, unsigned short vp, int vtype, unsigned short ap, int _ac3, unsigned int)
@@ -407,6 +408,8 @@ bool cPlayback::SetSpeed(int speed)
audioDecoder->Start();
videoDecoder->Start();
playstate = STATE_PLAY;
/* cPlayback is a friend of cAudio and can use private methods */
audioDecoder->do_mute(audioDecoder->Muted, false);
}
if (playback_speed == 1 && speed > 1)
{