Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b9af45c1
Kaydet (Commit)
b9af45c1
authored
Tem 06, 2013
tarafından
Minh Ngo
Kaydeden (comit)
Michael Meeks
Tem 26, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Setting url into the player class
Change-Id: I7175b3ac9a818c6ae0ac0fdbea70b0416df34446
üst
d8ea5e10
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
vlcmanager.cxx
avmedia/source/vlc/vlcmanager.cxx
+1
-1
vlcplayer.cxx
avmedia/source/vlc/vlcplayer.cxx
+12
-1
vlcplayer.hxx
avmedia/source/vlc/vlcplayer.hxx
+5
-4
No files found.
avmedia/source/vlc/vlcmanager.cxx
Dosyayı görüntüle @
b9af45c1
...
...
@@ -20,7 +20,7 @@ Manager::~Manager()
uno
::
Reference
<
media
::
XPlayer
>
SAL_CALL
Manager
::
createPlayer
(
const
rtl
::
OUString
&
rURL
)
throw
(
uno
::
RuntimeException
)
{
VLCPlayer
*
pPlayer
(
new
VLCPlayer
(
/*
mxMgr */
)
);
VLCPlayer
*
pPlayer
(
new
VLCPlayer
(
rURL
/*,
mxMgr */
)
);
uno
::
Reference
<
media
::
XPlayer
>
xRet
(
pPlayer
);
return
xRet
;
...
...
avmedia/source/vlc/vlcplayer.cxx
Dosyayı görüntüle @
b9af45c1
...
...
@@ -18,10 +18,21 @@ const char * const VLC_ARGS[] = {
"--quiet"
};
VLCPlayer
::
VLCPlayer
()
namespace
{
libvlc_media_t
*
initMedia
(
const
rtl
::
OUString
&
url
,
boost
::
scoped_ptr
<
libvlc_instance_t
>&
instance
)
{
rtl
::
OString
dest
;
url
.
convertToString
(
&
dest
,
RTL_TEXTENCODING_UTF8
,
0
);
return
libvlc_media_new_path
(
instance
.
get
(),
dest
.
getStr
());
}
}
VLCPlayer
::
VLCPlayer
(
const
rtl
::
OUString
&
url
)
:
VLC_Base
(
m_aMutex
)
,
mInstance
(
libvlc_new
(
sizeof
(
VLC_ARGS
)
/
sizeof
(
VLC_ARGS
[
0
]
),
VLC_ARGS
),
libvlc_release
)
,
mPlayer
(
libvlc_media_player_new
(
mInstance
.
get
()),
libvlc_media_player_release
)
,
mMedia
(
initMedia
(
url
,
mInstance
),
libvlc_media_release
)
{
}
...
...
avmedia/source/vlc/vlcplayer.hxx
Dosyayı görüntüle @
b9af45c1
...
...
@@ -22,7 +22,7 @@
#include "vlccommon.hxx"
#include <vlc/vlc.h>
#include <boost/s
har
ed_ptr.hpp>
#include <boost/s
cop
ed_ptr.hpp>
#include <cppuhelper/compbase2.hxx>
#include <com/sun/star/media/XPlayer.hpp>
#include <cppuhelper/basemutex.hxx>
...
...
@@ -37,10 +37,11 @@ typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::media::XPlayer,
class
VLCPlayer
:
public
::
cppu
::
BaseMutex
,
public
VLC_Base
{
boost
::
shared_ptr
<
libvlc_instance_t
>
mInstance
;
boost
::
shared_ptr
<
libvlc_media_player_t
>
mPlayer
;
boost
::
scoped_ptr
<
libvlc_instance_t
>
mInstance
;
boost
::
scoped_ptr
<
libvlc_media_player_t
>
mPlayer
;
boost
::
scoped_ptr
<
libvlc_media_t
>
mMedia
;
public
:
VLCPlayer
();
VLCPlayer
(
const
rtl
::
OUString
&
url
);
void
SAL_CALL
start
();
void
SAL_CALL
stop
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment