]> git.sesse.net Git - casparcg/commitdiff
#276
authorHelge Norberg <helge.norberg@gmail.com>
Thu, 31 Jul 2014 15:15:09 +0000 (17:15 +0200)
committerHelge Norberg <helge.norberg@gmail.com>
Thu, 31 Jul 2014 15:15:09 +0000 (17:15 +0200)
#279

Removed ImmediatelyAndClear AMCP queue type since it seems to do more harm than good.

CHANGES.txt
protocol/amcp/AMCPCommand.h
protocol/amcp/AMCPCommandQueue.cpp
protocol/amcp/AMCPCommandsImpl.h
protocol/amcp/AMCPProtocolStrategy.cpp

index c3926f2628149d06b4c4ec32967a6f2a4fcf0e97..f6a7e2d7aeec17962ea89b33b95bdaa3c5030dd7 100644 (file)
@@ -9,6 +9,7 @@ General
   o Added support for using a different configuration file at startup than the\r
     default casparcg.config by simply adding the name of the file to use as the\r
     first command line argument to casparcg.exe.\r
+  o Fixed various bugs.\r
 \r
 \r
 \r
index eb6aba1000d2e13a45c4874507bb693f89fde4ba..6dcacb52dfa51a9dbf328d546068d0cc5fc8c65f 100644 (file)
@@ -35,8 +35,7 @@ namespace caspar { namespace protocol { namespace amcp {
        enum AMCPCommandScheduling\r
        {\r
                Default = 0,\r
-               AddToQueue,\r
-               ImmediatelyAndClear\r
+               AddToQueue\r
        };\r
 \r
        class AMCPCommand\r
index d47bcbac0df29778a303fee08503e26f0a32c495..c2e34581172f639ff730087f244d0a5a5a1781a8 100644 (file)
@@ -39,9 +39,6 @@ void AMCPCommandQueue::AddCommand(AMCPCommandPtr pCurrentCommand)
        if(!pCurrentCommand)\r
                return;\r
 \r
-       if(pCurrentCommand->GetScheduling() == ImmediatelyAndClear)\r
-               executor_.clear();\r
-\r
        if(executor_.size() > 64)\r
        {\r
                try\r
index 1a14140d5326448f3a4685b297fbb0a79c88ba8d..f376d8463f044caaf36146ddf0ad286c2fbd9c0d 100644 (file)
@@ -136,7 +136,7 @@ class StopCommand : public AMCPCommandBase<true, AddToQueue, 0>
        bool DoExecute();\r
 };\r
 \r
-class ClearCommand : public AMCPCommandBase<true, ImmediatelyAndClear, 0>\r
+class ClearCommand : public AMCPCommandBase<true, AddToQueue, 0>\r
 {\r
        std::wstring print() const { return L"ClearCommand";}\r
        bool DoExecute();\r
index bbd4728050ce0736a82f720a4be712cbabdbb469..fd9d26e84c20cfcbe4d18b43b1d5df95138f6981 100644 (file)
@@ -218,8 +218,6 @@ AMCPCommandPtr AMCPProtocolStrategy::InterpretCommandString(const std::wstring&
 \r
                                        if(commandSwitch == TEXT("/APP"))\r
                                                pCommand->SetScheduling(AddToQueue);\r
-                                       else if(commandSwitch  == TEXT("/IMMF"))\r
-                                               pCommand->SetScheduling(ImmediatelyAndClear);\r
                                }\r
 \r
                                if(pCommand->NeedChannel())\r