mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
fix segfault subtitles selection - but not yet ready
This commit is contained in:
@@ -69,6 +69,7 @@ bool cPlayback::Open(playmode_t PlayMode)
|
|||||||
{
|
{
|
||||||
player->output->Command(player, OUTPUT_ADD, (void *)"audio");
|
player->output->Command(player, OUTPUT_ADD, (void *)"audio");
|
||||||
player->output->Command(player, OUTPUT_ADD, (void *)"video");
|
player->output->Command(player, OUTPUT_ADD, (void *)"video");
|
||||||
|
player->output->Command(player, OUTPUT_ADD, (void *)"subtitle");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -249,6 +250,7 @@ bool cPlayback::Stop(void)
|
|||||||
{
|
{
|
||||||
player->output->Command(player, OUTPUT_DEL, (void *)"audio");
|
player->output->Command(player, OUTPUT_DEL, (void *)"audio");
|
||||||
player->output->Command(player, OUTPUT_DEL, (void *)"video");
|
player->output->Command(player, OUTPUT_DEL, (void *)"video");
|
||||||
|
player->output->Command(player, OUTPUT_DEL, (void *)"subtitle");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player && player->playback)
|
if (player && player->playback)
|
||||||
|
Reference in New Issue
Block a user