Kaydet (Commit) bd8f84ce authored tarafından Minh Ngo's avatar Minh Ngo

Avmedia/VLC: Falling back to gstreamer if libvlc is not found.

Change-Id: I8d4e3cded0fc8c26a27505b5d51806bbcdeecc93
üst 8f7e4518
......@@ -9,6 +9,7 @@
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <com/sun/star/uno/Exception.hpp>
#include "vlcmanager.hxx"
#include "vlcplayer.hxx"
#include "wrapper/Instance.hxx"
......@@ -78,7 +79,7 @@ uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const rtl::OUSt
throw (uno::RuntimeException)
{
if ( !m_is_vlc_found )
return uno::Reference< media::XPlayer >();
throw uno::Exception();
if ( !rURL.isEmpty() )
{
......@@ -107,15 +108,12 @@ rtl::OUString SAL_CALL Manager::getImplementationName()
sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& serviceName )
throw (uno::RuntimeException)
{
return serviceName == VLC_SERVICENAME && m_is_vlc_found;
return serviceName == VLC_SERVICENAME;
}
uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames()
throw (uno::RuntimeException)
{
if ( !m_is_vlc_found )
return uno::Sequence< rtl::OUString >();
::uno::Sequence< OUString > aRet(1);
aRet[0] = VLC_SERVICENAME;
return aRet;
......
......@@ -36,7 +36,7 @@ struct ApiMap
namespace
{
#if defined( UNX )
const char LibName[] = "libvlc.so.5";
const char LibName[] = "libvlc.so";
#elif defined( MACOSX )
const char LibName[] = "/Applications/VLC.app/Contents/MacOS/lib/libvlc.dylib";
#elif defined( WNT )
......
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