supplement to 4bd66ae15d, fix segfault with only audio stream

Origin commit data
------------------
Branch: master
Commit: f43dc68b5c
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
parent 77743a723a
commit 91c8f42dc8

View File

@@ -228,12 +228,9 @@ 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)
{ {