libeplayer3: minor changes

This commit is contained in:
martii
2013-07-07 15:59:55 +02:00
parent f97060bcd6
commit e80f8646e7
3 changed files with 19 additions and 9 deletions

View File

@@ -267,12 +267,13 @@ bool cPlayback::Start(char *filename, unsigned short vpid, int vtype, unsigned s
bool cPlayback::Stop(void)
{
printf("%s:%s playing %d\n", FILENAME, __FUNCTION__, playing);
if(playing==false) return false;
//if(playing==false) return false;
if(player && player->playback && player->output) {
if(player && player->playback)
player->playback->Command(player, PLAYBACK_STOP, NULL);
if(player && player->output)
player->output->Command(player, OUTPUT_CLOSE, NULL);
}
if(player && player->output) {
player->output->Command(player,OUTPUT_DEL, (void*)"audio");