]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
Do not send an unnecessary START commmand after EMP_TO_SRT command
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 1 Oct 2014 13:35:52 +0000 (15:35 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 1 Oct 2014 13:35:52 +0000 (15:35 +0200)
klgd_ff_plugin.c

index 1072bb86631ee9cde4fc67c327c21c05a7d59e8c..79058ee1f65f0a43704c00f29710a610e46b796c 100644 (file)
@@ -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: