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
724f4009
Commit
724f4009
authored
Nov 13, 2007
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic
parent
890dbc22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/misc/screensaver.c
modules/misc/screensaver.c
+6
-6
No files found.
modules/misc/screensaver.c
View file @
724f4009
...
...
@@ -132,8 +132,7 @@ static void Deactivate( vlc_object_t *p_this )
/*****************************************************************************
* Execute: Spawns a process using execv()
*****************************************************************************/
static
void
Execute
(
intf_thread_t
*
p_this
,
const
char
*
psz_path
,
const
char
*
const
*
ppsz_args
)
static
void
Execute
(
intf_thread_t
*
p_this
,
const
char
*
const
*
ppsz_args
)
{
pid_t
pid
;
switch
(
pid
=
fork
()
)
...
...
@@ -142,12 +141,13 @@ static void Execute( intf_thread_t *p_this, const char *psz_path,
/* We don't want output */
fclose
(
stdout
);
fclose
(
stderr
);
execv
(
p
sz_path
,
(
char
*
const
*
)
ppsz_args
);
execv
(
p
psz_args
[
0
]
,
(
char
*
const
*
)
ppsz_args
);
/* If the file we want to execute doesn't exist we exit() */
exit
(
-
1
);
break
;
case
-
1
:
/* we're the error */
msg_Dbg
(
p_this
,
"Couldn't fork() while launching %s"
,
psz_path
);
msg_Dbg
(
p_this
,
"Couldn't fork() while launching %s"
,
ppsz_args
[
0
]
);
break
;
default:
/* we're the parent */
/* Wait for the child to exit.
...
...
@@ -193,7 +193,7 @@ static void Run( intf_thread_t *p_intf )
/* http://www.jwz.org/xscreensaver/faq.html#dvd */
const
char
*
const
ppsz_xsargs
[]
=
{
"/bin/sh"
,
"-c"
,
"xscreensaver-command -deactivate &"
,
(
char
*
)
NULL
};
Execute
(
p_intf
,
"/bin/sh"
,
ppsz_xsargs
);
Execute
(
p_intf
,
ppsz_xsargs
);
/* If we have dbus support, let's communicate directly
with gnome-screensave else, run
...
...
@@ -203,7 +203,7 @@ static void Run( intf_thread_t *p_intf )
#else
const
char
*
const
ppsz_gsargs
[]
=
{
"/bin/sh"
,
"-c"
,
"gnome-screensaver-command --poke &"
,
(
char
*
)
NULL
};
Execute
(
p_intf
,
"/bin/sh"
,
ppsz_gsargs
);
Execute
(
p_intf
,
ppsz_gsargs
);
#endif
/* FIXME: add support for other screensavers */
}
...
...
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