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
ba282259
Kaydet (Commit)
ba282259
authored
Agu 22, 2013
tarafından
Minh Ngo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixing warnings and crash with the VLC::Instance.
Change-Id: I0282b79e296d6fccafbf7d89f38ed2f50672ef08
üst
77d73276
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
17 deletions
+26
-17
vlcplayer.cxx
avmedia/source/vlc/vlcplayer.cxx
+16
-13
vlcplayer.hxx
avmedia/source/vlc/vlcplayer.hxx
+1
-1
Instance.cxx
avmedia/source/vlc/wrapper/Instance.cxx
+6
-2
Instance.hxx
avmedia/source/vlc/wrapper/Instance.hxx
+3
-1
No files found.
avmedia/source/vlc/vlcplayer.cxx
Dosyayı görüntüle @
ba282259
...
...
@@ -12,26 +12,29 @@ using namespace ::com::sun::star;
namespace
avmedia
{
namespace
vlc
{
const
::
rtl
::
OUString
AVMEDIA_VLC_PLAYER_IMPLEMENTATIONNAME
=
"com.sun.star.comp.avmedia.Player_VLC"
;
const
::
rtl
::
OUString
AVMEDIA_VLC_PLAYER_SERVICENAME
=
"com.sun.star.media.Player_VLC"
;
namespace
{
const
::
rtl
::
OUString
AVMEDIA_VLC_PLAYER_IMPLEMENTATIONNAME
=
"com.sun.star.comp.avmedia.Player_VLC"
;
const
::
rtl
::
OUString
AVMEDIA_VLC_PLAYER_SERVICENAME
=
"com.sun.star.media.Player_VLC"
;
const
char
*
const
VLC_ARGS
[]
=
{
"-Vdummy"
,
"--snapshot-format=png"
,
"--ffmpeg-threads"
,
"--verbose=2"
};
const
int
MS_IN_SEC
=
1000
;
// Millisec in sec
const
int
MS_IN_SEC
=
1000
;
// Millisec in sec
const
char
*
const
VLC_ARGS
[]
=
{
"-Vdummy"
,
"--snapshot-format=png"
,
"--ffmpeg-threads"
,
"--verbose=2"
};
}
VLCPlayer
::
VLCPlayer
(
const
rtl
::
OUString
&
url
,
boost
::
shared_ptr
<
VLC
::
EventHandler
>
eh
)
VLCPlayer
::
VLCPlayer
(
const
rtl
::
OUString
&
i
url
,
boost
::
shared_ptr
<
VLC
::
EventHandler
>
eh
)
:
VLC_Base
(
m_aMutex
)
,
mEventHandler
(
eh
)
,
mInstance
(
VLC_ARGS
)
,
mMedia
(
url
,
mInstance
)
,
mInstance
(
sizeof
(
VLC_ARGS
)
/
sizeof
(
VLC_ARGS
[
0
]
),
VLC_ARGS
)
,
mMedia
(
i
url
,
mInstance
)
,
mPlayer
(
mMedia
)
,
mEventManager
(
mPlayer
,
mEventHandler
)
,
mUrl
(
url
)
,
mUrl
(
i
url
)
,
mPlaybackLoop
(
false
)
{
mPlayer
.
setMouseHandling
(
false
);
...
...
avmedia/source/vlc/vlcplayer.hxx
Dosyayı görüntüle @
ba282259
...
...
@@ -49,7 +49,7 @@ class VLCPlayer : public ::cppu::BaseMutex,
const
rtl
::
OUString
mUrl
;
bool
mPlaybackLoop
;
public
:
VLCPlayer
(
const
rtl
::
OUString
&
url
,
boost
::
shared_ptr
<
VLC
::
EventHandler
>
eh
);
VLCPlayer
(
const
rtl
::
OUString
&
i
url
,
boost
::
shared_ptr
<
VLC
::
EventHandler
>
eh
);
const
rtl
::
OUString
&
url
()
const
;
...
...
avmedia/source/vlc/wrapper/Instance.cxx
Dosyayı görüntüle @
ba282259
...
...
@@ -26,15 +26,18 @@ namespace VLC
};
}
Instance
::
Instance
(
const
char
*
const
argv
[]
)
Instance
::
Instance
(
int
argc
,
const
char
*
const
argv
[]
)
{
InitApiMap
(
VLC_INSTANCE_API
);
mInstance
=
libvlc_new
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
]
)
,
argv
);
mInstance
=
libvlc_new
(
argc
,
argv
);
}
Instance
::
Instance
(
const
Instance
&
other
)
{
libvlc_release
(
mInstance
);
mInstance
=
other
.
mInstance
;
libvlc_retain
(
mInstance
);
}
const
Instance
&
Instance
::
operator
=
(
const
Instance
&
other
)
...
...
@@ -42,6 +45,7 @@ namespace VLC
libvlc_release
(
mInstance
);
mInstance
=
other
.
mInstance
;
libvlc_retain
(
mInstance
);
return
*
this
;
}
Instance
::~
Instance
()
...
...
avmedia/source/vlc/wrapper/Instance.hxx
Dosyayı görüntüle @
ba282259
...
...
@@ -14,10 +14,12 @@ struct libvlc_instance_t;
namespace
VLC
{
class
Instance
{
public
:
Instance
(
const
char
*
const
argv
[]
);
Instance
(
int
argc
,
const
char
*
const
argv
[]
);
Instance
(
const
Instance
&
other
);
const
Instance
&
operator
=
(
const
Instance
&
other
);
virtual
~
Instance
();
...
...
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