Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1508936f
Commit
1508936f
authored
Sep 15, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deadlock
parent
f56300d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/misc/screensaver.c
modules/misc/screensaver.c
+10
-9
No files found.
modules/misc/screensaver.c
View file @
1508936f
...
...
@@ -134,12 +134,21 @@ static void Deactivate( vlc_object_t *p_this )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
vlc_bool_t
b_quit
=
VLC_FALSE
;
#ifdef HAVE_DBUS
p_intf
->
p_sys
->
p_connection
=
dbus_init
(
p_intf
);
#endif
do
while
(
!
b_quit
)
{
/* Check screensaver every 30 seconds */
vlc_mutex_lock
(
&
p_intf
->
object_lock
);
vlc_cond_timedwait
(
&
p_intf
->
object_wait
,
&
p_intf
->
object_lock
,
mdate
()
+
30000000
);
b_quit
=
p_intf
->
b_die
;
vlc_mutex_unlock
(
&
p_intf
->
object_lock
);
vlc_object_t
*
p_vout
;
p_vout
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
...
...
@@ -169,15 +178,7 @@ static void Run( intf_thread_t *p_intf )
vlc_object_release
(
p_input
);
}
}
/* Check screensaver every 30 seconds */
vlc_mutex_lock
(
&
p_intf
->
object_lock
);
vlc_cond_timedwait
(
&
p_intf
->
object_wait
,
&
p_intf
->
object_lock
,
mdate
()
+
30000000
);
}
while
(
!
p_intf
->
b_die
);
vlc_mutex_unlock
(
&
p_intf
->
object_lock
);
}
#ifdef HAVE_DBUS
...
...
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