From bd8b93fdff93ff7b2b7e493a7bcef6a59f299dae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Aug 2015 13:08:02 +0200 Subject: make PostUserEvent Link<> typed Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a --- avmedia/source/gstreamer/gstplayer.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'avmedia') diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 42828335819b..be36322b9a6b 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -108,8 +108,7 @@ public: private: void processQueue(); - DECL_STATIC_LINK( - MissingPluginInstaller, launchUi, MissingPluginInstallerThread *); + DECL_STATIC_LINK_TYPED(MissingPluginInstaller, launchUi, void*, void); osl::Mutex mutex_; std::set reported_; @@ -236,9 +235,9 @@ void MissingPluginInstaller::processQueue() { queued_.clear(); } -IMPL_STATIC_LINK( - MissingPluginInstaller, launchUi, MissingPluginInstallerThread *, thread) +IMPL_STATIC_LINK_TYPED(MissingPluginInstaller, launchUi, void *, p, void) { + MissingPluginInstallerThread* thread = static_cast(p); rtl::Reference ref(thread, SAL_NO_ACQUIRE); gst_pb_utils_init(); // not thread safe; hopefully fine to consistently call from our event @@ -249,7 +248,6 @@ IMPL_STATIC_LINK( // gst_missing_plugin_message_get_installer_detail before calling // gst_pb_utils_init ref->launch(); - return 0; } struct TheMissingPluginInstaller: -- cgit