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
a87b2b98
Commit
a87b2b98
authored
Jan 18, 2009
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One less vlc_object_find()
parent
916025b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/misc/inhibit.c
modules/misc/inhibit.c
+8
-3
No files found.
modules/misc/inhibit.c
View file @
a87b2b98
...
...
@@ -38,6 +38,7 @@
#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include <dbus/dbus.h>
...
...
@@ -225,14 +226,16 @@ static int UnInhibit( intf_thread_t *p_intf )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
input_thread_t
*
p_input
;
for
(
;;
)
{
input_thread_t
*
p_input
;
/* Check playing state every 30 seconds */
msleep
(
30
*
CLOCK_FREQ
);
p_input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
const
int
i_state
=
var_GetInteger
(
p_input
,
"state"
);
...
...
@@ -258,4 +261,6 @@ static void Run( intf_thread_t *p_intf )
break
;
}
}
pl_Release
(
p_intf
);
}
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