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
8659d507
Commit
8659d507
authored
Mar 05, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed inhibit playlist leak.
parent
dca8d565
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
modules/misc/inhibit.c
modules/misc/inhibit.c
+18
-4
No files found.
modules/misc/inhibit.c
View file @
8659d507
...
...
@@ -224,18 +224,30 @@ static int UnInhibit( intf_thread_t *p_intf )
/*****************************************************************************
* Run: main thread
*****************************************************************************/
static
void
vlc_cleanup_playlist
(
void
*
p_playlist
)
{
pl_Release
(
(
playlist_t
*
)
p_playlist
);
}
static
void
Run
(
intf_thread_t
*
p_intf
)
{
int
canc
=
vlc_savecancel
();
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
input_thread_t
*
p_input
;
vlc_cleanup_push
(
vlc_cleanup_playlist
,
p_intf
);
for
(
;;
)
{
/* Check playing state every 30 seconds */
vlc_restorecancel
(
canc
);
/* FIXME wake up on playlist event instead ?
* Check playing state every 30 seconds */
msleep
(
30
*
CLOCK_FREQ
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
canc
=
vlc_savecancel
();
/* */
input_thread_t
*
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
const
int
i_state
=
var_GetInteger
(
p_input
,
"state"
);
...
...
@@ -262,5 +274,7 @@ static void Run( intf_thread_t *p_intf )
}
}
pl_Release
(
p_intf
);
/* */
vlc_cleanup_run
();
vlc_restorecancel
(
canc
);
}
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