diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-27 13:08:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-28 09:49:56 +0200 |
commit | bd8b93fdff93ff7b2b7e493a7bcef6a59f299dae (patch) | |
tree | f05be9665737f0667faf95702d96fbf3f0a103c5 /avmedia/source | |
parent | 1b9c3a17e8496aedfb80528c5275e6658154789d (diff) |
make PostUserEvent Link<> typed
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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<OString> 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<MissingPluginInstallerThread*>(p); rtl::Reference<MissingPluginInstallerThread> 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: |