static void startPlayback(void) { loadMusic(); MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); PlaylistView *view = new PlaylistView(mainStack); if (view->Create()) mainStack->AddScreen(view); else delete view; }
static void startPlayback(void) { if (!checkStorageGroup() || !checkMusicAvailable()) return; gMusicData->loadMusic(); MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); PlaylistView *view = new PlaylistView(mainStack, NULL); if (view->Create()) mainStack->AddScreen(view); else delete view; }