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
c09a9269
Commit
c09a9269
authored
Aug 15, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/control/media_instance.c: Create and Destroy the drawable variable.
parent
8032efad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/control/media_instance.c
src/control/media_instance.c
+6
-2
No files found.
src/control/media_instance.c
View file @
c09a9269
...
@@ -59,7 +59,11 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
...
@@ -59,7 +59,11 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
/* No one is tracking this input_thread appart us. Destroy it */
/* No one is tracking this input_thread appart us. Destroy it */
if
(
should_destroy
)
if
(
should_destroy
)
{
/* We owned this one */
var_Destroy
(
p_input_thread
,
"drawable"
);
input_DestroyThread
(
p_input_thread
);
input_DestroyThread
(
p_input_thread
);
}
else
else
{
{
/* XXX: hack the playlist doesn't retain the input thread,
/* XXX: hack the playlist doesn't retain the input thread,
...
@@ -408,6 +412,7 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
...
@@ -408,6 +412,7 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
p_mi
->
drawable
;
val
.
i_int
=
p_mi
->
drawable
;
var_Create
(
p_input_thread
,
"drawable"
,
VLC_VAR_DOINHERIT
);
var_Set
(
p_input_thread
,
"drawable"
,
val
);
var_Set
(
p_input_thread
,
"drawable"
,
val
);
}
}
var_AddCallback
(
p_input_thread
,
"state"
,
input_state_changed
,
p_mi
);
var_AddCallback
(
p_input_thread
,
"state"
,
input_state_changed
,
p_mi
);
...
@@ -443,7 +448,7 @@ void libvlc_media_instance_pause( libvlc_media_instance_t *p_mi,
...
@@ -443,7 +448,7 @@ void libvlc_media_instance_pause( libvlc_media_instance_t *p_mi,
void
libvlc_media_instance_stop
(
libvlc_media_instance_t
*
p_mi
,
void
libvlc_media_instance_stop
(
libvlc_media_instance_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
libvlc_exception_raise
(
p_e
,
"Not implemented"
);
//
libvlc_exception_raise( p_e, "Not implemented" );
}
}
/**************************************************************************
/**************************************************************************
...
@@ -640,4 +645,3 @@ int libvlc_media_instance_get_state(
...
@@ -640,4 +645,3 @@ int libvlc_media_instance_get_state(
return
val
.
i_int
;
return
val
.
i_int
;
}
}
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