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
55ba1763
Commit
55ba1763
authored
Feb 06, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep the instance until after the media player is destroyed
parent
96793133
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/control/media_player.c
src/control/media_player.c
+4
-0
No files found.
src/control/media_player.c
View file @
55ba1763
...
@@ -415,6 +415,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
...
@@ -415,6 +415,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
*/
*/
var_AddCallback
(
mp
->
p_libvlc
,
"snapshot-file"
,
snapshot_was_taken
,
mp
);
var_AddCallback
(
mp
->
p_libvlc
,
"snapshot-file"
,
snapshot_was_taken
,
mp
);
libvlc_retain
(
instance
);
return
mp
;
return
mp
;
}
}
...
@@ -466,7 +467,10 @@ static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
...
@@ -466,7 +467,10 @@ static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
libvlc_event_manager_release
(
p_mi
->
p_event_manager
);
libvlc_event_manager_release
(
p_mi
->
p_event_manager
);
libvlc_media_release
(
p_mi
->
p_md
);
libvlc_media_release
(
p_mi
->
p_md
);
vlc_mutex_destroy
(
&
p_mi
->
object_lock
);
vlc_mutex_destroy
(
&
p_mi
->
object_lock
);
libvlc_instance_t
*
instance
=
p_mi
->
p_libvlc_instance
;
vlc_object_release
(
p_mi
);
vlc_object_release
(
p_mi
);
libvlc_release
(
instance
);
}
}
/**************************************************************************
/**************************************************************************
...
...
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