mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark/playback: don't show program selection dialog if audio or video pid is already selected
This commit is contained in:
@@ -82,7 +82,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
|
|||||||
} else {
|
} else {
|
||||||
std::vector<std::string> keys, values;
|
std::vector<std::string> keys, values;
|
||||||
int selected_program = 0;
|
int selected_program = 0;
|
||||||
if (GetPrograms(keys, values) && (keys.size() > 1) && ProgramSelectionCallback) {
|
if (!vpid && !apid && GetPrograms(keys, values) && (keys.size() > 1) && ProgramSelectionCallback) {
|
||||||
const char *key = ProgramSelectionCallback(ProgramSelectionCallbackData, keys, values);
|
const char *key = ProgramSelectionCallback(ProgramSelectionCallbackData, keys, values);
|
||||||
if (!key) {
|
if (!key) {
|
||||||
player->Close();
|
player->Close();
|
||||||
|
Reference in New Issue
Block a user