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
254f7e8f
Kaydet (Commit)
254f7e8f
authored
Agu 10, 2013
tarafından
Minh Ngo
Kaydeden (comit)
Michael Meeks
Agu 21, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Disabling the mouse handling event in the VLC engine.
Change-Id: I348f7830b2ed86ddc21a48e0b482adfafc0175cd
üst
fb89c0c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
vlcplayer.cxx
avmedia/source/vlc/vlcplayer.cxx
+2
-1
Player.cxx
avmedia/source/vlc/wrapper/Player.cxx
+8
-1
Player.hxx
avmedia/source/vlc/wrapper/Player.hxx
+2
-0
No files found.
avmedia/source/vlc/vlcplayer.cxx
Dosyayı görüntüle @
254f7e8f
...
@@ -19,7 +19,7 @@ const char * const VLC_ARGS[] = {
...
@@ -19,7 +19,7 @@ const char * const VLC_ARGS[] = {
"-Vdummy"
,
"-Vdummy"
,
"--snapshot-format=png"
,
"--snapshot-format=png"
,
"--ffmpeg-threads"
,
"--ffmpeg-threads"
,
"--verbose=
-1"
,
"--verbose=
2"
};
};
const
int
MS_IN_SEC
=
1000
;
// Millisec in sec
const
int
MS_IN_SEC
=
1000
;
// Millisec in sec
...
@@ -33,6 +33,7 @@ VLCPlayer::VLCPlayer( const rtl::OUString& url )
...
@@ -33,6 +33,7 @@ VLCPlayer::VLCPlayer( const rtl::OUString& url )
,
mUrl
(
url
)
,
mUrl
(
url
)
,
mPlaybackLoop
(
false
)
,
mPlaybackLoop
(
false
)
{
{
mPlayer
.
setMouseHandling
(
false
);
}
}
const
rtl
::
OUString
&
VLCPlayer
::
url
()
const
const
rtl
::
OUString
&
VLCPlayer
::
url
()
const
...
...
avmedia/source/vlc/wrapper/Player.cxx
Dosyayı görüntüle @
254f7e8f
...
@@ -30,6 +30,7 @@ namespace VLC
...
@@ -30,6 +30,7 @@ namespace VLC
unsigned
int
i_height
);
unsigned
int
i_height
);
void
(
*
libvlc_media_player_set_xwindow
)
(
libvlc_media_player_t
*
p_mi
,
uint32_t
drawable
);
void
(
*
libvlc_media_player_set_xwindow
)
(
libvlc_media_player_t
*
p_mi
,
uint32_t
drawable
);
unsigned
(
*
libvlc_media_player_has_vout
)
(
libvlc_media_player_t
*
p_mi
);
unsigned
(
*
libvlc_media_player_has_vout
)
(
libvlc_media_player_t
*
p_mi
);
void
(
*
libvlc_video_set_mouse_input
)
(
libvlc_media_player_t
*
p_mi
,
unsigned
on
);
ApiMap
VLC_PLAYER_API
[]
=
ApiMap
VLC_PLAYER_API
[]
=
{
{
...
@@ -49,7 +50,8 @@ namespace VLC
...
@@ -49,7 +50,8 @@ namespace VLC
SYM_MAP
(
libvlc_audio_get_mute
),
SYM_MAP
(
libvlc_audio_get_mute
),
SYM_MAP
(
libvlc_video_take_snapshot
),
SYM_MAP
(
libvlc_video_take_snapshot
),
SYM_MAP
(
libvlc_media_player_set_xwindow
),
SYM_MAP
(
libvlc_media_player_set_xwindow
),
SYM_MAP
(
libvlc_media_player_has_vout
)
SYM_MAP
(
libvlc_media_player_has_vout
),
SYM_MAP
(
libvlc_video_set_mouse_input
)
};
};
}
}
...
@@ -89,6 +91,11 @@ namespace VLC
...
@@ -89,6 +91,11 @@ namespace VLC
return
libvlc_media_player_get_time
(
mPlayer
);
return
libvlc_media_player_get_time
(
mPlayer
);
}
}
void
Player
::
setMouseHandling
(
bool
flag
)
{
libvlc_video_set_mouse_input
(
mPlayer
,
flag
);
}
bool
Player
::
isPlaying
()
const
bool
Player
::
isPlaying
()
const
{
{
return
libvlc_media_player_is_playing
(
mPlayer
)
==
1
;
return
libvlc_media_player_is_playing
(
mPlayer
)
==
1
;
...
...
avmedia/source/vlc/wrapper/Player.hxx
Dosyayı görüntüle @
254f7e8f
...
@@ -63,6 +63,8 @@ namespace VLC
...
@@ -63,6 +63,8 @@ namespace VLC
return
mPlayer
;
return
mPlayer
;
}
}
void
setMouseHandling
(
bool
flag
);
private
:
private
:
libvlc_media_player_t
*
mPlayer
;
libvlc_media_player_t
*
mPlayer
;
};
};
...
...
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