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
57cd8822
Commit
57cd8822
authored
Feb 21, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: remove one vlc_object_find.
parent
81cbd185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
28 deletions
+24
-28
modules/control/rc.c
modules/control/rc.c
+24
-28
No files found.
modules/control/rc.c
View file @
57cd8822
...
@@ -984,16 +984,16 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -984,16 +984,16 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
playlist_t
*
p_playlist
=
NULL
;
playlist_t
*
p_playlist
=
NULL
;
input_thread_t
*
p_input
=
NULL
;
char
cmd
[
6
]
;
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
status_lock
);
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
status_lock
);
p_
input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
p_
playlist
=
pl_Hold
(
p_intf
);
if
(
p_input
)
PL_LOCK
;
{
int
i_status
=
playlist_Status
(
p_playlist
);
char
cmd
[
6
]
;
PL_UNLOCK
;
p_playlist
=
pl_Hold
(
p_input
);
pl_Release
(
p_intf
);
playlist_Lock
(
p_playlist
);
switch
(
playlist_Status
(
p_playlist
)
)
switch
(
i_status
)
{
{
case
PLAYLIST_STOPPED
:
case
PLAYLIST_STOPPED
:
strcpy
(
cmd
,
"stop"
);
strcpy
(
cmd
,
"stop"
);
...
@@ -1007,13 +1007,9 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1007,13 +1007,9 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
default:
default:
cmd
[
0
]
=
'\0'
;
cmd
[
0
]
=
'\0'
;
}
/* var_GetInteger( p_input, "state" ) */
}
/* var_GetInteger( p_input, "state" ) */
playlist_Unlock
(
p_playlist
);
msg_rc
(
STATUS_CHANGE
"( %s state: %d ): %s"
,
cmd
,
newval
.
i_int
,
msg_rc
(
STATUS_CHANGE
"( %s state: %d ): %s"
,
cmd
,
newval
.
i_int
,
ppsz_input_state
[
newval
.
i_int
]
);
ppsz_input_state
[
newval
.
i_int
]
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_input
);
}
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
status_lock
);
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
status_lock
);
return
VLC_SUCCESS
;
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