summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorArnaud Versini <Arnaud.Versini@libreoffice.org>2017-05-07 14:25:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-07 19:39:31 +0200
commitfa19a1f0b050ee6c2ba1f314360e8a2536f61396 (patch)
treefdcc902c8e25409ee78f0878ec95c88dd75c2aa9 /avmedia
parentff7f5e1bbd4a9a3e3fa3e4ddb349c97605dc8a01 (diff)
avmedia: remove useless mutex and lock
Change-Id: Ia6088fdb8734acb76c38067246fa626ddf964f8e Reviewed-on: https://gerrit.libreoffice.org/37344 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/gstreamer/gstwindow.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/avmedia/source/gstreamer/gstwindow.cxx b/avmedia/source/gstreamer/gstwindow.cxx
index 948fff012d0c..dace006253fb 100644
--- a/avmedia/source/gstreamer/gstwindow.cxx
+++ b/avmedia/source/gstreamer/gstwindow.cxx
@@ -31,24 +31,6 @@ using namespace ::com::sun::star;
namespace avmedia { namespace gstreamer {
-static ::osl::Mutex& ImplGetOwnStaticMutex()
-{
- static ::osl::Mutex* pMutex = nullptr;
-
- if( pMutex == nullptr )
- {
- ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
-
- if( pMutex == nullptr )
- {
- static ::osl::Mutex aMutex;
- pMutex = &aMutex;
- }
- }
-
- return *pMutex;
-}
-
// Window
@@ -56,7 +38,6 @@ Window::Window() :
meZoomLevel( media::ZoomLevel_NOT_AVAILABLE ),
mnPointerType( awt::SystemPointer::ARROW )
{
- ::osl::MutexGuard aGuard( ImplGetOwnStaticMutex() );
}
Window::~Window()