Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5577ca99
Commit
5577ca99
authored
Mar 12, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activex: bool to VARIANT_BOOL macro
parent
b57a963b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
projects/activex/plugin.cpp
projects/activex/plugin.cpp
+4
-2
No files found.
projects/activex/plugin.cpp
View file @
5577ca99
...
...
@@ -1135,6 +1135,7 @@ static void handle_position_changed_event(const libvlc_event_t* event, void *par
plugin
->
fireOnPositionChangedEvent
(
event
->
u
.
media_player_position_changed
.
new_position
);
}
#define B(val) ((val) ? 0xFFFF : 0x0000)
void
VLCPlugin
::
fireOnSeekableChangedEvent
(
VARIANT_BOOL
seekable
)
{
VARIANT
varSeek
;
...
...
@@ -1147,7 +1148,7 @@ void VLCPlugin::fireOnSeekableChangedEvent(VARIANT_BOOL seekable)
static
void
handle_seekable_changed_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
{
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
plugin
->
fireOnSeekableChangedEvent
(
event
->
u
.
media_player_seekable_changed
.
new_seekable
);
plugin
->
fireOnSeekableChangedEvent
(
B
(
event
->
u
.
media_player_seekable_changed
.
new_seekable
)
);
}
void
VLCPlugin
::
fireOnPausableChangedEvent
(
VARIANT_BOOL
pausable
)
...
...
@@ -1162,8 +1163,9 @@ void VLCPlugin::fireOnPausableChangedEvent(VARIANT_BOOL pausable)
static
void
handle_pausable_changed_event
(
const
libvlc_event_t
*
event
,
void
*
param
)
{
VLCPlugin
*
plugin
=
(
VLCPlugin
*
)
param
;
plugin
->
fireOnPausableChangedEvent
(
event
->
u
.
media_player_pausable_changed
.
new_pausable
);
plugin
->
fireOnPausableChangedEvent
(
B
(
event
->
u
.
media_player_pausable_changed
.
new_pausable
)
);
}
#undef B
/* */
...
...
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