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
d669e2c0
Commit
d669e2c0
authored
Jan 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP interface: get rid of vlc_object_find
parent
1cdcdc95
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
modules/control/http/macro.c
modules/control/http/macro.c
+1
-2
modules/control/http/rpn.c
modules/control/http/rpn.c
+10
-15
No files found.
modules/control/http/macro.c
View file @
d669e2c0
...
...
@@ -230,9 +230,8 @@ static void MacroDo( httpd_file_sys_t *p_args,
if
(
p_sys
->
p_input
)
{
vout_thread_t
*
p_vout
;
p_vout
=
vlc_object_find
(
p_sys
->
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
p_vout
=
input_GetVout
(
p_sys
->
p_input
);
if
(
p_vout
)
{
p_vout
->
i_changes
|=
VOUT_FULLSCREEN_CHANGE
;
...
...
modules/control/http/rpn.c
View file @
d669e2c0
...
...
@@ -36,7 +36,6 @@ static vlc_object_t *GetVLCObject( intf_thread_t *p_intf,
bool
*
pb_need_release
)
{
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
int
i_object_type
=
0
;
vlc_object_t
*
p_object
=
NULL
;
*
pb_need_release
=
false
;
...
...
@@ -48,18 +47,17 @@ static vlc_object_t *GetVLCObject( intf_thread_t *p_intf,
p_object
=
VLC_OBJECT
(
p_sys
->
p_playlist
);
else
if
(
!
strcmp
(
psz_object
,
"VLC_OBJECT_INPUT"
)
)
p_object
=
VLC_OBJECT
(
p_sys
->
p_input
);
else
if
(
!
strcmp
(
psz_object
,
"VLC_OBJECT_VOUT"
)
)
i_object_type
=
VLC_OBJECT_VOUT
;
else
if
(
!
strcmp
(
psz_object
,
"VLC_OBJECT_AOUT"
)
)
i_object_type
=
VLC_OBJECT_AOUT
;
else
msg_Warn
(
p_intf
,
"unknown object type (%s)"
,
psz_object
);
if
(
p_object
==
NULL
&&
i_object_type
)
else
if
(
p_sys
->
p_input
)
{
if
(
!
strcmp
(
psz_object
,
"VLC_OBJECT_VOUT"
)
)
p_object
=
VLC_OBJECT
(
input_GetVout
(
p_sys
->
p_input
)
);
else
if
(
!
strcmp
(
psz_object
,
"VLC_OBJECT_AOUT"
)
)
p_object
=
VLC_OBJECT
(
input_GetAout
(
p_sys
->
p_input
)
);
if
(
p_object
)
*
pb_need_release
=
true
;
p_object
=
vlc_object_find
(
p_intf
,
i_object_type
,
FIND_ANYWHERE
);
}
else
msg_Warn
(
p_intf
,
"unknown object type (%s)"
,
psz_object
);
return
p_object
;
}
...
...
@@ -1123,10 +1121,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
{
if
(
p_sys
->
p_input
)
{
vout_thread_t
*
p_vout
;
p_vout
=
vlc_object_find
(
p_sys
->
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
vout_thread_t
*
p_vout
=
input_GetVout
(
p_sys
->
p_input
);
if
(
p_vout
)
{
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
...
...
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