mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
spark: only reopen decoders in cPlayback::Close if we closed them
Origin commit data
------------------
Branch: master
Commit: 904d91f82b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-25 (Sat, 25 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -17,6 +17,7 @@ static Context_t *player;
|
|||||||
|
|
||||||
extern cAudio *audioDecoder;
|
extern cAudio *audioDecoder;
|
||||||
extern cVideo *videoDecoder;
|
extern cVideo *videoDecoder;
|
||||||
|
static bool decoders_closed = false;
|
||||||
|
|
||||||
static const char * FILENAME = "playback_libeplayer3.cpp";
|
static const char * FILENAME = "playback_libeplayer3.cpp";
|
||||||
|
|
||||||
@@ -30,6 +31,7 @@ bool cPlayback::Open(playmode_t PlayMode)
|
|||||||
|
|
||||||
audioDecoder->closeDevice();
|
audioDecoder->closeDevice();
|
||||||
videoDecoder->closeDevice();
|
videoDecoder->closeDevice();
|
||||||
|
decoders_closed = true;
|
||||||
|
|
||||||
printf("%s:%s - PlayMode=%s\n", FILENAME, __FUNCTION__, aPLAYMODE[PlayMode]);
|
printf("%s:%s - PlayMode=%s\n", FILENAME, __FUNCTION__, aPLAYMODE[PlayMode]);
|
||||||
|
|
||||||
@@ -61,9 +63,11 @@ void cPlayback::Close(void)
|
|||||||
|
|
||||||
//Dagobert: movieplayer does not call stop, it calls close ;)
|
//Dagobert: movieplayer does not call stop, it calls close ;)
|
||||||
Stop();
|
Stop();
|
||||||
|
if (decoders_closed)
|
||||||
|
{
|
||||||
audioDecoder->openDevice();
|
audioDecoder->openDevice();
|
||||||
videoDecoder->openDevice();
|
videoDecoder->openDevice();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Used by Fileplay
|
//Used by Fileplay
|
||||||
|
Reference in New Issue
Block a user