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
e4e086ea
Commit
e4e086ea
authored
Oct 22, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inhibit: apply [22797] since it's the same main loop than screensaver.c
screensaver: removes unused variable
parent
cd347ef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
modules/misc/inhibit.c
modules/misc/inhibit.c
+8
-9
modules/misc/screensaver.c
modules/misc/screensaver.c
+0
-1
No files found.
modules/misc/inhibit.c
View file @
e4e086ea
...
...
@@ -221,17 +221,13 @@ static int UnInhibit( intf_thread_t *p_intf )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
vlc_object_lock
(
p_intf
);
for
(;;)
{
input_thread_t
*
p_input
;
vlc_bool_t
b_quit
;
/* Check playing state every 30 seconds */
vlc_object_lock
(
p_intf
);
b_quit
=
vlc_object_timedwait
(
p_intf
,
mdate
()
+
30000000
)
<
0
;
vlc_object_unlock
(
p_intf
);
if
(
b_quit
)
if
(
vlc_object_timedwait
(
p_intf
,
mdate
()
+
30000000
)
<
0
)
break
;
p_input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
...
...
@@ -242,7 +238,7 @@ static void Run( intf_thread_t *p_intf )
if
(
!
Inhibit
(
p_intf
)
)
{
vlc_object_release
(
p_input
);
return
;
goto
end
;
}
}
else
if
(
p_intf
->
p_sys
->
i_cookie
)
...
...
@@ -250,7 +246,7 @@ static void Run( intf_thread_t *p_intf )
if
(
!
UnInhibit
(
p_intf
)
)
{
vlc_object_release
(
p_input
);
return
;
goto
end
;
}
}
vlc_object_release
(
p_input
);
...
...
@@ -258,7 +254,10 @@ static void Run( intf_thread_t *p_intf )
else
if
(
p_intf
->
p_sys
->
i_cookie
)
{
if
(
!
UnInhibit
(
p_intf
)
)
return
;
goto
end
;
}
}
end:
vlc_object_unlock
(
p_intf
);
}
modules/misc/screensaver.c
View file @
e4e086ea
...
...
@@ -142,7 +142,6 @@ static void Run( intf_thread_t *p_intf )
for
(;;)
{
vlc_object_t
*
p_vout
;
vlc_bool_t
b_quit
;
/* Check screensaver every 30 seconds */
if
(
vlc_object_timedwait
(
p_intf
,
mdate
()
+
30000000
)
<
0
)
...
...
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