Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
libvlcpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libvlcpp
Commits
8ff33f8a
Commit
8ff33f8a
authored
Mar 15, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix implicit int to bool conversions
parent
d87c35bf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
vlcpp/EventManager.hpp
vlcpp/EventManager.hpp
+3
-3
vlcpp/Media.hpp
vlcpp/Media.hpp
+2
-2
vlcpp/MediaDiscoverer.hpp
vlcpp/MediaDiscoverer.hpp
+1
-1
vlcpp/MediaList.hpp
vlcpp/MediaList.hpp
+1
-1
vlcpp/MediaPlayer.hpp
vlcpp/MediaPlayer.hpp
+4
-4
No files found.
vlcpp/EventManager.hpp
View file @
8ff33f8a
...
...
@@ -408,7 +408,7 @@ class MediaPlayerEventManager : public EventManager
return
handle
(
libvlc_MediaPlayerSeekableChanged
,
std
::
forward
<
Func
>
(
f
),
[](
const
libvlc_event_t
*
e
,
void
*
data
)
{
auto
callback
=
static_cast
<
DecayPtr
<
Func
>>
(
data
);
(
*
callback
)(
e
->
u
.
media_player_seekable_changed
.
new_seekable
);
(
*
callback
)(
e
->
u
.
media_player_seekable_changed
.
new_seekable
!=
0
);
});
}
...
...
@@ -419,7 +419,7 @@ class MediaPlayerEventManager : public EventManager
return
handle
(
libvlc_MediaPlayerSeekableChanged
,
std
::
forward
<
Func
>
(
f
),
[](
const
libvlc_event_t
*
e
,
void
*
data
)
{
auto
callback
=
static_cast
<
DecayPtr
<
Func
>>
(
data
);
(
*
callback
)(
e
->
u
.
media_player_seekable_changed
.
new_seekable
);
(
*
callback
)(
e
->
u
.
media_player_seekable_changed
.
new_seekable
!=
0
);
});
}
...
...
@@ -474,7 +474,7 @@ class MediaPlayerEventManager : public EventManager
return
handle
(
libvlc_MediaPlayerScrambledChanged
,
std
::
forward
<
Func
>
(
f
),
[](
const
libvlc_event_t
*
e
,
void
*
data
)
{
auto
callback
=
static_cast
<
DecayPtr
<
Func
>>
(
data
);
(
*
callback
)(
e
->
u
.
media_player_scrambled_changed
.
new_scrambled
);
(
*
callback
)(
e
->
u
.
media_player_scrambled_changed
.
new_scrambled
!=
0
);
});
}
...
...
vlcpp/Media.hpp
View file @
8ff33f8a
...
...
@@ -293,7 +293,7 @@ public:
*/
bool
stats
(
libvlc_media_stats_t
*
p_stats
)
{
return
libvlc_media_get_stats
(
*
this
,
p_stats
)
;
return
libvlc_media_get_stats
(
*
this
,
p_stats
)
!=
0
;
}
/**
...
...
@@ -372,7 +372,7 @@ public:
*/
bool
isParsed
()
{
return
libvlc_media_is_parsed
(
*
this
);
return
libvlc_media_is_parsed
(
*
this
)
!=
0
;
}
/**
...
...
vlcpp/MediaDiscoverer.hpp
View file @
8ff33f8a
...
...
@@ -88,7 +88,7 @@ public:
*/
bool
isRunning
()
{
return
libvlc_media_discoverer_is_running
(
*
this
);
return
libvlc_media_discoverer_is_running
(
*
this
)
!=
0
;
}
private:
...
...
vlcpp/MediaList.hpp
View file @
8ff33f8a
...
...
@@ -199,7 +199,7 @@ public:
*/
bool
isReadonly
()
{
return
libvlc_media_list_is_readonly
(
*
this
);
return
libvlc_media_list_is_readonly
(
*
this
)
!=
0
;
}
/**
...
...
vlcpp/MediaPlayer.hpp
View file @
8ff33f8a
...
...
@@ -391,7 +391,7 @@ public:
*/
bool
willPlay
()
{
return
libvlc_media_player_will_play
(
*
this
);
return
libvlc_media_player_will_play
(
*
this
)
!=
0
;
}
/**
...
...
@@ -518,7 +518,7 @@ public:
*/
bool
isSeekable
()
{
return
libvlc_media_player_is_seekable
(
*
this
);
return
libvlc_media_player_is_seekable
(
*
this
)
!=
0
;
}
/**
...
...
@@ -528,7 +528,7 @@ public:
*/
bool
canPause
()
{
return
libvlc_media_player_can_pause
(
*
this
);
return
libvlc_media_player_can_pause
(
*
this
)
!=
0
;
}
/**
...
...
@@ -540,7 +540,7 @@ public:
*/
bool
programScrambled
()
{
return
libvlc_media_player_program_scrambled
(
*
this
);
return
libvlc_media_player_program_scrambled
(
*
this
)
!=
0
;
}
/**
...
...
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