]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sat, 10 Mar 2012 10:33:19 +0000 (10:33 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sat, 10 Mar 2012 10:33:19 +0000 (10:33 +0000)
modules/ffmpeg/producer/ffmpeg_producer.cpp

index a2528946c1e1945354eec8c265a46800a9824de1..5f4b8e760552bd88902fadec8f13b5fa088818dc 100644 (file)
@@ -219,7 +219,7 @@ public:
                static const boost::wregex seek_exp(L"SEEK\\s+(?<VALUE>\\d+)", boost::regex::icase);\r
                static const boost::wregex length_exp(L"LENGTH\\s+(?<VALUE>\\d+)", boost::regex::icase);\r
                static const boost::wregex start_exp(L"START\\s+(?<VALUE>\\d+)", boost::regex::icase);\r
-\r
+               \r
                std::wstring result;\r
                        \r
                boost::wsmatch what;\r
@@ -235,19 +235,19 @@ public:
                }\r
                else if(boost::regex_match(param, what, length_exp))\r
                {\r
-                       if(!what["LENGTH"].str().empty())\r
+                       if(!what["VALUE"].str().empty())\r
                        {\r
-                               if(boost::iequals(what["LENGTH"].str(), "NaN"))\r
+                               if(boost::iequals(what["VALUE"].str(), "NaN"))\r
                                        input_.length(std::numeric_limits<uint32_t>::max());\r
                                else\r
-                                       input_.length(boost::lexical_cast<uint32_t>(what["LENGTH"].str()));\r
+                                       input_.length(boost::lexical_cast<uint32_t>(what["VALUE"].str()));\r
                        }\r
                        result = boost::lexical_cast<std::wstring>(input_.length());\r
                }\r
                else if(boost::regex_match(param, what, start_exp))\r
                {\r
-                       if(!what["START"].str().empty())\r
-                               input_.start(boost::lexical_cast<uint32_t>(what["START"].str()));\r
+                       if(!what["VALUE"].str().empty())\r
+                               input_.start(boost::lexical_cast<uint32_t>(what["VALUE"].str()));\r
                        result = boost::lexical_cast<std::wstring>(input_.start());\r
                }\r
                else\r