libarmbox/playback_libeplayer3.cpp: fix segfault when start webstream at first, thx DboxOldie

Origin commit data
------------------
Branch: master
Commit: 7aeb54a410
Author: Frankenstone <dampf_acc@online.de>
Date: 2020-02-24 (Mon, 24 Feb 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Frankenstone
2020-02-24 18:19:43 +01:00
committed by vanhofen
parent 473425929e
commit fd71705a5b

View File

@@ -524,7 +524,7 @@ void cPlayback::FindAllPids(uint16_t *apids, unsigned short *ac3flags, uint16_t
const int max_numpida = 40;//MAX_PLAYBACK_PIDS defined in neutrino movieplayer.h const int max_numpida = 40;//MAX_PLAYBACK_PIDS defined in neutrino movieplayer.h
*numpida = 0; *numpida = 0;
if (player && player->manager && player->manager->audio) if (player && player->playback && player->playback->isPlaying && player->manager && player->manager->audio)
{ {
char **TrackList = NULL; char **TrackList = NULL;
player->manager->audio->Command(player, MANAGER_LIST, &TrackList); player->manager->audio->Command(player, MANAGER_LIST, &TrackList);