From: Michal MalĂ˝ Date: Wed, 1 Oct 2014 13:35:52 +0000 (+0200) Subject: Do not send an unnecessary START commmand after EMP_TO_SRT command X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=5272716bf7c4171bf233f538d6a62d9289789a0c;p=KLGD_FF_plugin.git Do not send an unnecessary START commmand after EMP_TO_SRT command --- diff --git a/klgd_ff_plugin.c b/klgd_ff_plugin.c index 1072bb8..79058ee 100644 --- a/klgd_ff_plugin.c +++ b/klgd_ff_plugin.c @@ -359,10 +359,11 @@ static struct klgd_command_stream * ffpl_get_commands(struct klgd_plugin *self, case FFPL_TO_START: switch (eff->state) { case FFPL_EMPTY: - if (priv->has_emp_to_srt) + if (priv->has_emp_to_srt) { ret = ffpl_start_effect(priv, s, eff); - else - ret = ffpl_upload_effect(priv, s, eff); + break; + } + ret = ffpl_upload_effect(priv, s, eff); if (ret) break; case FFPL_UPLOADED: