Kaydet (Commit) fa19a1f0 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Noel Grandin

avmedia: remove useless mutex and lock

Change-Id: Ia6088fdb8734acb76c38067246fa626ddf964f8e
Reviewed-on: https://gerrit.libreoffice.org/37344Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ff7f5e1b
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment