mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3/manager: use AVDISCARD_NONE instead of AVDISCARD_DEFAULT to disable programs
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#define ENABLE_LOGGING 1
|
||||
#define ENABLE_LOGGING 0
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -201,7 +201,7 @@ bool Manager::selectProgram(const int id)
|
||||
if (it->second->hidden || it->second->inactive) {
|
||||
it->second->stream->discard = AVDISCARD_ALL;
|
||||
} else {
|
||||
it->second->stream->discard = AVDISCARD_DEFAULT;
|
||||
it->second->stream->discard = AVDISCARD_NONE;
|
||||
player->input.SwitchAudio(it->second);
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ bool Manager::selectProgram(const int id)
|
||||
if (it->second->hidden || it->second->inactive) {
|
||||
it->second->stream->discard = AVDISCARD_ALL;
|
||||
} else {
|
||||
it->second->stream->discard = AVDISCARD_DEFAULT;
|
||||
it->second->stream->discard = AVDISCARD_NONE;
|
||||
player->input.SwitchVideo(it->second);
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ bool Manager::selectProgram(const int id)
|
||||
if (it->second->hidden || it->second->inactive) {
|
||||
it->second->stream->discard = AVDISCARD_ALL;
|
||||
} else {
|
||||
it->second->stream->discard = AVDISCARD_DEFAULT;
|
||||
it->second->stream->discard = AVDISCARD_NONE;
|
||||
player->input.SwitchSubtitle(it->second);
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ bool Manager::selectProgram(const int id)
|
||||
if (it->second->hidden || it->second->inactive) {
|
||||
it->second->stream->discard = AVDISCARD_ALL;
|
||||
} else {
|
||||
it->second->stream->discard = AVDISCARD_DEFAULT;
|
||||
it->second->stream->discard = AVDISCARD_NONE;
|
||||
player->input.SwitchTeletext(it->second);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user