Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
1794ae7b
Commit
1794ae7b
authored
Sep 15, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplification to avoid busy loops after process suspension
parent
4f8e40a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
modules/misc/screensaver.c
modules/misc/screensaver.c
+2
-6
No files found.
modules/misc/screensaver.c
View file @
1794ae7b
...
...
@@ -134,8 +134,6 @@ static void Deactivate( vlc_object_t *p_this )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
mtime_t
deadline
=
mdate
();
#ifdef HAVE_DBUS
p_intf
->
p_sys
->
p_connection
=
dbus_init
(
p_intf
);
#endif
...
...
@@ -172,12 +170,10 @@ static void Run( intf_thread_t *p_intf )
}
}
vlc_mutex_lock
(
&
p_intf
->
object_lock
);
/* Check screensaver every 30 seconds */
deadline
+=
30
*
1000000
;
vlc_mutex_lock
(
&
p_intf
->
object_lock
)
;
vlc_cond_timedwait
(
&
p_intf
->
object_wait
,
&
p_intf
->
object_lock
,
deadline
);
mdate
()
+
30000000
);
}
while
(
!
p_intf
->
b_die
);
...
...
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