summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-10-24 16:50:19 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-10-25 05:42:07 +0000
commited9867be93522316f36d1f9001ccb224107aadae (patch)
treeb41a2e6bae2937d22d3e4287384dec85e55dd68e /avmedia
parenta62bc6a65abb47adb0e4caff7e38823c15b302fc (diff)
Replace boost::bind by lambdas in avmedia tree.
Change-Id: I0072ba9972a6c4d1565b1d3826202ff11f0c335d Reviewed-on: https://gerrit.libreoffice.org/19582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/vlc/vlcframegrabber.cxx3
-rw-r--r--avmedia/source/vlc/vlcplayer.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/avmedia/source/vlc/vlcframegrabber.cxx b/avmedia/source/vlc/vlcframegrabber.cxx
index 6ba85f4b196a..cdf4a341bd7d 100644
--- a/avmedia/source/vlc/vlcframegrabber.cxx
+++ b/avmedia/source/vlc/vlcframegrabber.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <boost/bind.hpp>
#include <chrono>
#include <iostream>
#include <osl/conditn.hxx>
@@ -75,7 +74,7 @@ VLCFrameGrabber::VLCFrameGrabber( wrapper::EventHandler& eh, const rtl::OUString
const rtl::OUString& fileName = utl::TempFile::CreateTempName();
{
wrapper::EventManager manager( mPlayer, mEventHandler );
- manager.onPaused(boost::bind(&osl::Condition::set, &condition));
+ manager.onPaused([&condition](){ condition.set(); });
if ( !mPlayer.play() )
{
diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx
index 89e99815efb1..1318a181abb7 100644
--- a/avmedia/source/vlc/vlcplayer.cxx
+++ b/avmedia/source/vlc/vlcplayer.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <boost/bind.hpp>
#include <vcl/syschild.hxx>
#include <vcl/sysdata.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -130,7 +129,7 @@ void SAL_CALL VLCPlayer::setPlaybackLoop( sal_Bool bSet ) throw ( css::uno::Runt
mPlaybackLoop = bSet;
if ( bSet )
- mEventManager.onEndReached(boost::bind(&VLCPlayer::replay, this));
+ mEventManager.onEndReached([this](){ this->replay(); });
else
mEventManager.onEndReached();
}