Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
37f89f65
Commit
37f89f65
authored
Sep 05, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added libvlc_MediaPlayerVout event.
It is send on vout count changes (close #5277).
parent
b18fad44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
include/vlc/libvlc_events.h
include/vlc/libvlc_events.h
+5
-0
lib/media_player.c
lib/media_player.c
+19
-0
No files found.
include/vlc/libvlc_events.h
View file @
37f89f65
...
...
@@ -71,6 +71,7 @@ enum libvlc_event_e {
libvlc_MediaPlayerTitleChanged
,
libvlc_MediaPlayerSnapshotTaken
,
libvlc_MediaPlayerLengthChanged
,
libvlc_MediaPlayerVout
,
libvlc_MediaListItemAdded
=
0x200
,
libvlc_MediaListWillAddItem
,
...
...
@@ -162,6 +163,10 @@ typedef struct libvlc_event_t
{
int
new_pausable
;
}
media_player_pausable_changed
;
struct
{
int
new_count
;
}
media_player_vout
;
/* media list */
struct
...
...
lib/media_player.c
View file @
37f89f65
...
...
@@ -316,6 +316,25 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
var_GetFloat
(
p_input
,
"cache"
));
libvlc_event_send
(
p_mi
->
p_event_manager
,
&
event
);
}
else
if
(
newval
.
i_int
==
INPUT_EVENT_VOUT
)
{
vout_thread_t
**
pp_vout
;
size_t
i_vout
;
if
(
input_Control
(
p_input
,
INPUT_GET_VOUTS
,
&
pp_vout
,
&
i_vout
)
)
{
i_vout
=
0
;
}
else
{
for
(
size_t
i
=
0
;
i
<
i_vout
;
i
++
)
vlc_object_release
(
pp_vout
[
i
]
);
free
(
pp_vout
);
}
event
.
type
=
libvlc_MediaPlayerVout
;
event
.
u
.
media_player_vout
.
new_count
=
i_vout
;
libvlc_event_send
(
p_mi
->
p_event_manager
,
&
event
);
}
return
VLC_SUCCESS
;
}
...
...
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