supplement to 4bd66ae15d, fix segfault with only audio stream

Origin commit data
------------------
Branch: master
Commit: de6090c29e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2018-02-11 (Sun, 11 Feb 2018)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2018-02-11 12:01:19 +01:00
committed by max_10
parent 53e6502bb1
commit d7d500b2a5

View File

@@ -228,13 +228,10 @@ static int Command(void *_context, OutputCmd_t command, void *argument)
ret = cERR_OUTPUT_INTERNAL_ERROR; ret = cERR_OUTPUT_INTERNAL_ERROR;
// success or not executed, dunn care // success or not executed, dunn care
if (!ret)
{
if (context->playback->isAudio) if (context->playback->isAudio)
{ {
ret = context->output->audio->Command(context, OUTPUT_PLAY, "audio"); ret = context->output->audio->Command(context, OUTPUT_PLAY, "audio");
} }
}
if (!ret) if (!ret)
{ {
if (context->playback->isSubtitle) if (context->playback->isSubtitle)