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
bcfa8de4
Commit
bcfa8de4
authored
Jan 29, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua/extension: Make sure our input exists when releasing/holding.
parent
a41b5f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/misc/lua/extension.c
modules/misc/lua/extension.c
+4
-2
No files found.
modules/misc/lua/extension.c
View file @
bcfa8de4
...
@@ -472,8 +472,10 @@ static int Control( extensions_manager_t *p_mgr, int i_control, va_list args )
...
@@ -472,8 +472,10 @@ static int Control( extensions_manager_t *p_mgr, int i_control, va_list args )
bool
ok
=
LockExtension
(
p_ext
);
bool
ok
=
LockExtension
(
p_ext
);
if
(
!
ok
)
if
(
!
ok
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
vlc_object_release
(
p_ext
->
p_sys
->
p_input
);
input_thread_t
*
old
=
p_ext
->
p_sys
->
p_input
;
p_ext
->
p_sys
->
p_input
=
vlc_object_hold
(
p_input
);
if
(
old
)
vlc_object_release
(
old
);
p_ext
->
p_sys
->
p_input
=
p_input
?
vlc_object_hold
(
p_input
)
:
p_input
;
UnlockExtension
(
p_ext
);
UnlockExtension
(
p_ext
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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