Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
3e00781b
Commit
3e00781b
authored
Mar 26, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved int to bool "//FIXME" for Media
parent
21657b3b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
src/LibVLCpp/VLCMediaPlayer.cpp
src/LibVLCpp/VLCMediaPlayer.cpp
+4
-4
src/LibVLCpp/VLCMediaPlayer.h
src/LibVLCpp/VLCMediaPlayer.h
+2
-2
src/Media.cpp
src/Media.cpp
+2
-2
src/Media.h
src/Media.h
+3
-3
No files found.
src/LibVLCpp/VLCMediaPlayer.cpp
View file @
3e00781b
...
...
@@ -56,16 +56,16 @@ void MediaPlayer::takeSnapshot(char* outputFile, unsi
this
->
_ex
.
checkThrow
();
}
int
MediaPlayer
::
isPlaying
()
bool
MediaPlayer
::
isPlaying
()
{
int
res
=
libvlc_media_player_is_playing
(
this
->
_internalPtr
,
this
->
_ex
);
this
->
_ex
.
checkThrow
();
return
res
;
return
(
res
==
1
)
;
}
int
MediaPlayer
::
isSeekable
()
bool
MediaPlayer
::
isSeekable
()
{
int
res
=
libvlc_media_player_is_seekable
(
this
->
_internalPtr
,
this
->
_ex
);
this
->
_ex
.
checkThrow
();
return
res
;
return
(
res
==
1
)
;
}
src/LibVLCpp/VLCMediaPlayer.h
View file @
3e00781b
...
...
@@ -22,8 +22,8 @@ namespace LibVLCpp
void
setTime
(
qint64
time
);
qint64
getLength
();
void
takeSnapshot
(
char
*
outputFile
,
unsigned
int
width
,
unsigned
int
heigth
);
int
isPlaying
();
int
isSeekable
();
bool
isPlaying
();
bool
isSeekable
();
private:
Exception
_ex
;
...
...
src/Media.cpp
View file @
3e00781b
...
...
@@ -83,12 +83,12 @@ QImage* Media::takeSnapshot(unsigned int width, unsigned int height)
return
this
->
_snapshot
;
}
int
Media
::
isPlaying
()
bool
Media
::
isPlaying
()
{
return
this
->
_vlcMediaPlayer
->
isPlaying
();
}
int
Media
::
isSeekable
()
bool
Media
::
isSeekable
()
{
return
this
->
_vlcMediaPlayer
->
isSeekable
();
}
...
...
src/Media.h
View file @
3e00781b
...
...
@@ -20,9 +20,9 @@ public:
static
void
unlock
(
LibVLCpp
::
Media
::
DataCtx
*
dataCtx
);
QImage
*
takeSnapshot
(
unsigned
int
width
,
unsigned
int
heigth
);
//FIXME into bool
int
isPlaying
();
int
isSeekable
();
bool
isPlaying
();
bool
isSeekable
();
qint64
getLength
();
QImage
&
getImage
();
...
...
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