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
f7520eb1
Commit
f7520eb1
authored
Oct 27, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua_sd: force garbage collection once a while.
parent
91a47fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/misc/lua/services_discovery.c
modules/misc/lua/services_discovery.c
+5
-1
No files found.
modules/misc/lua/services_discovery.c
View file @
f7520eb1
...
...
@@ -74,7 +74,7 @@ int Open_LuaSD( vlc_object_t *p_this )
// This module can be used to load lua script not registered
// as builtin lua SD modules.
config_ChainParse
(
p_sd
,
"lua-"
,
ppsz_sd_options
,
p_sd
->
p_cfg
);
psz_name
=
var_
Create
GetString
(
p_sd
,
"lua-sd"
);
psz_name
=
var_GetString
(
p_sd
,
"lua-sd"
);
}
else
{
...
...
@@ -233,6 +233,10 @@ static void* Run( void *data )
free
(
psz_query
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
}
/* Force garbage collection, because the core will keep the SD
* open, but lua will never gc until lua_close(). */
lua_gc
(
L
,
LUA_GCCOLLECT
,
0
);
vlc_restorecancel
(
cancel
);
}
vlc_cleanup_run
();
...
...
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