diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-26 23:47:24 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-26 23:47:24 (GMT) |
commit | 45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559 (patch) | |
tree | c82a47a2dfb417bb5f0305254f45fa84d69e0a57 /src/uscxml/plugins/invoker/ffmpeg | |
parent | cb4356f33044fd42958cdede5dfe93ef4516173a (diff) | |
download | uscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.zip uscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.tar.gz uscxml-45ba8b93098f4f64a2dbc1e0a4c15c5ddb1d6559.tar.bz2 |
Performance: replaced boost::iequals for strings by inline function
Diffstat (limited to 'src/uscxml/plugins/invoker/ffmpeg')
-rw-r--r-- | src/uscxml/plugins/invoker/ffmpeg/FFMPEGInvoker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/plugins/invoker/ffmpeg/FFMPEGInvoker.cpp b/src/uscxml/plugins/invoker/ffmpeg/FFMPEGInvoker.cpp index 67c338d..f43e406 100644 --- a/src/uscxml/plugins/invoker/ffmpeg/FFMPEGInvoker.cpp +++ b/src/uscxml/plugins/invoker/ffmpeg/FFMPEGInvoker.cpp @@ -101,7 +101,7 @@ void FFMPEGInvoker::invoke(const InvokeRequest& req) { void FFMPEGInvoker::send(const SendRequest& req) { SendRequest reqCopy = req; - if (boost::iequals(req.name, "render.start")) { + if (iequals(req.name, "render.start")) { // create a new encoding context int ret; EncodingContext* ctx = new EncodingContext(); @@ -167,9 +167,9 @@ void FFMPEGInvoker::send(const SendRequest& req) { ctx->frame->pts = 0; _encoders[context] = ctx; - } else if(boost::iequals(req.name, "render.frame")) { + } else if(iequals(req.name, "render.frame")) { _workQueue.push(req); - } else if(boost::iequals(req.name, "render.end")) { + } else if(iequals(req.name, "render.end")) { _workQueue.push(req); } } @@ -242,7 +242,7 @@ void FFMPEGInvoker::process(const SendRequest& req) { tthread::lock_guard<tthread::recursive_mutex> lock(ctx->mutex); // finish encoding and return - if(boost::iequals(req.name, "render.end")) { + if(iequals(req.name, "render.end")) { finish(ctx, req); delete _encoders[context]; _encoders.erase(context); |