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
c4017cea
Commit
c4017cea
authored
Apr 10, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
externrun.c: compile fix
parent
b0d9d1ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/misc/externrun.c
modules/misc/externrun.c
+7
-6
No files found.
modules/misc/externrun.c
View file @
c4017cea
...
...
@@ -123,6 +123,8 @@ static int Open( vlc_object_t *p_this )
static
void
Close
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
run_command_t
*
p_command
;
run_command_t
*
p_next
;
playlist_t
*
p_playlist
;
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -134,9 +136,7 @@ static void Close( vlc_object_t *p_this )
var_Destroy
(
p_playlist
,
"run-program-command"
);
vlc_object_release
(
p_playlist
);
run_command_t
*
p_command
=
p_intf
->
p_sys
->
p_first_command
;
run_command_t
*
p_next
;
p_command
=
p_intf
->
p_sys
->
p_first_command
;
while
(
p_command
)
{
p_next
=
p_command
->
p_next
;
...
...
@@ -154,10 +154,11 @@ static void Close( vlc_object_t *p_this )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
p_intf
->
p_sys
->
next_check
=
mdate
()
+
1000000
;
run_command_t
*
p_command
;
run_command_t
*
p_previous
;
p_intf
->
p_sys
->
next_check
=
mdate
()
+
1000000
;
while
(
!
p_intf
->
b_die
)
{
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
change_lock
);
...
...
@@ -263,7 +264,7 @@ static int AddRunCommand( vlc_object_t *p_this, char const *psz_var,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
run_command_t
*
p_command
;
char
*
psz_command
=
NULL
;
int
i_delay
=
0
;
...
...
@@ -290,7 +291,7 @@ static int AddRunCommand( vlc_object_t *p_this, char const *psz_var,
strcpy
(
psz_command
,
newval
.
psz_string
);
}
run_command_t
*
p_command
=
malloc
(
sizeof
(
run_command_t
)
);
p_command
=
malloc
(
sizeof
(
run_command_t
)
);
if
(
p_command
==
NULL
)
{
msg_Err
(
p_intf
,
"out of memory: can't add run command"
);
...
...
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