libeplayer3: minor changes

This commit is contained in:
martii
2013-07-07 15:59:55 +02:00
committed by Stefan Seyfried
parent dc85e1c284
commit dfa1a3e32b
3 changed files with 20 additions and 8 deletions

View File

@@ -227,13 +227,16 @@ bool cPlayback::Start(char *filename, unsigned short vpid, int vtype, unsigned s
bool cPlayback::Stop(void)
{
printf("%s:%s playing %d\n", FILENAME, __func__, pd->playing);
#if 0
if (pd->playing == false)
return false;
#endif
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");