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
b5f800b6
Commit
b5f800b6
authored
Feb 11, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: correctly reference current input
parent
b0b1fe56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
modules/control/dbus.c
modules/control/dbus.c
+15
-9
No files found.
modules/control/dbus.c
View file @
b5f800b6
...
...
@@ -112,6 +112,7 @@ struct intf_sys_t
bool
b_dead
;
vlc_array_t
*
p_events
;
vlc_mutex_t
lock
;
input_thread_t
*
p_input
;
};
typedef
struct
...
...
@@ -704,6 +705,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_meta_read
=
false
;
p_sys
->
i_caps
=
CAPS_NONE
;
p_sys
->
b_dead
=
false
;
p_sys
->
p_input
=
NULL
;
dbus_error_init
(
&
error
);
...
...
@@ -770,7 +772,6 @@ static void Close ( vlc_object_t *p_this )
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
playlist_t
*
p_playlist
=
p_sys
->
p_playlist
;
input_thread_t
*
p_input
;
var_DelCallback
(
p_playlist
,
"item-current"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
AllCallback
,
p_intf
);
...
...
@@ -780,14 +781,12 @@ static void Close ( vlc_object_t *p_this )
var_DelCallback
(
p_playlist
,
"repeat"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"loop"
,
AllCallback
,
p_intf
);
#if 0
p_input = ???;
if ( p_input )
if
(
p_sys
->
p_input
)
{
var_DelCallback( p_input, "state", AllCallback, p_intf );
vlc_object_release( p_input );
var_DelCallback
(
p_
sys
->
p_
input
,
"state"
,
AllCallback
,
p_intf
);
vlc_object_release
(
p_
sys
->
p_
input
);
}
#endif
dbus_connection_unref
(
p_sys
->
p_conn
);
// Free the events array
...
...
@@ -1065,6 +1064,13 @@ static int TrackChange( intf_thread_t *p_intf )
if
(
p_intf
->
p_sys
->
b_dead
)
return
VLC_SUCCESS
;
if
(
p_sys
->
p_input
)
{
var_DelCallback
(
p_sys
->
p_input
,
"state"
,
AllCallback
,
p_intf
);
vlc_object_release
(
p_sys
->
p_input
);
p_sys
->
p_input
=
NULL
;
}
p_sys
->
b_meta_read
=
false
;
p_input
=
playlist_CurrentInput
(
p_playlist
);
...
...
@@ -1086,9 +1092,9 @@ static int TrackChange( intf_thread_t *p_intf )
TrackChangeSignal
(
p_sys
->
p_conn
,
p_item
);
}
#if 0
p_sys
->
p_input
=
p_input
;
var_AddCallback
(
p_input
,
"state"
,
AllCallback
,
p_intf
);
#endif
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