avmedia/source/gstreamer/gstwindow.cxx | 19 ------------------- 1 file changed, 19 deletions(-)
New commits: commit fa19a1f0b050ee6c2ba1f314360e8a2536f61396 Author: Arnaud Versini <arnaud.vers...@libreoffice.org> Date: Sun May 7 14:25:41 2017 +0200 avmedia: remove useless mutex and lock Change-Id: Ia6088fdb8734acb76c38067246fa626ddf964f8e Reviewed-on: https://gerrit.libreoffice.org/37344 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits