mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +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
|
class cAudio
|
||||||
{
|
{
|
||||||
|
friend class cPlayback;
|
||||||
private:
|
private:
|
||||||
int fd;
|
int fd;
|
||||||
bool Muted;
|
bool Muted;
|
||||||
|
@@ -103,7 +103,8 @@ void cPlayback::Close(void)
|
|||||||
if (pesbuf)
|
if (pesbuf)
|
||||||
free(pesbuf);
|
free(pesbuf);
|
||||||
pesbuf = NULL;
|
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)
|
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();
|
audioDecoder->Start();
|
||||||
videoDecoder->Start();
|
videoDecoder->Start();
|
||||||
playstate = STATE_PLAY;
|
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)
|
if (playback_speed == 1 && speed > 1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user