mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
triple: fix audio mute state after fast-forwarding in playback
This commit is contained in:
@@ -32,6 +32,7 @@ typedef enum
|
||||
|
||||
class cAudio
|
||||
{
|
||||
friend class cPlayback;
|
||||
private:
|
||||
int fd;
|
||||
bool Muted;
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user