summaryrefslogtreecommitdiff
path: root/avmedia/source/vlc/vlcuno.cxx
diff options
context:
space:
mode:
authorMinh Ngo <nlminhtl@gmail.com>2013-09-08 16:26:19 +0300
committerMinh Ngo <nlminhtl@gmail.com>2013-09-08 16:26:49 +0300
commit9f71d4e41aea338530ee297668b513645ae3d6b9 (patch)
treed2befcd86e58826157624147f08af4c8df82c3e6 /avmedia/source/vlc/vlcuno.cxx
parent7c7d898b6e8f09f066817399214e51f454ff7982 (diff)
Creating one single Player manager.
Change-Id: I2a56f38a0b28c828f365a24d744aea385436c2b5
Diffstat (limited to 'avmedia/source/vlc/vlcuno.cxx')
-rw-r--r--avmedia/source/vlc/vlcuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/vlc/vlcuno.cxx b/avmedia/source/vlc/vlcuno.cxx
index 5421f62b3cdc..d41b2df9a174 100644
--- a/avmedia/source/vlc/vlcuno.cxx
+++ b/avmedia/source/vlc/vlcuno.cxx
@@ -28,8 +28,8 @@ using namespace ::com::sun::star;
static uno::Reference< uno::XInterface > SAL_CALL create_MediaPlayer( const uno::Reference< lang::XMultiServiceFactory >& rxFact )
{
fprintf (stderr, "create VLC Media player !\n");
- (void) rxFact;
- return uno::Reference< uno::XInterface >(*new ::avmedia::vlc::Manager( rxFact ) );
+ static uno::Reference< uno::XInterface > manager( *new ::avmedia::vlc::Manager( rxFact ) );
+ return manager;
}
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediavlc_component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* /*pRegistryKey*/ )