Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
06f2a64b
Commit
06f2a64b
authored
Nov 19, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: remove useless intf-change object variable
parent
b459e18d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
14 deletions
+0
-14
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+0
-5
modules/control/dbus/dbus_common.h
modules/control/dbus/dbus_common.h
+0
-1
modules/gui/macosx/VLCMain.m
modules/gui/macosx/VLCMain.m
+0
-2
modules/gui/macosx/VLCPlaylistInfo.m
modules/gui/macosx/VLCPlaylistInfo.m
+0
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+0
-2
src/playlist/engine.c
src/playlist/engine.c
+0
-3
No files found.
modules/control/dbus/dbus.c
View file @
06f2a64b
...
...
@@ -236,7 +236,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_playlist
=
p_playlist
;
var_AddCallback
(
p_playlist
,
"input-current"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"intf-change"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"volume"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"mute"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"playlist-item-append"
,
AllCallback
,
p_intf
);
...
...
@@ -298,7 +297,6 @@ static void Close ( vlc_object_t *p_this )
vlc_join
(
p_sys
->
thread
,
NULL
);
var_DelCallback
(
p_playlist
,
"input-current"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"volume"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"mute"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"playlist-item-append"
,
AllCallback
,
p_intf
);
...
...
@@ -553,7 +551,6 @@ static void ProcessEvents( intf_thread_t *p_intf,
vlc_dictionary_insert
(
&
player_properties
,
"Metadata"
,
NULL
);
break
;
case
SIGNAL_INTF_CHANGE
:
case
SIGNAL_PLAYLIST_ITEM_APPEND
:
case
SIGNAL_PLAYLIST_ITEM_DELETED
:
{
...
...
@@ -979,8 +976,6 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
if
(
oldval
.
b_bool
!=
newval
.
b_bool
)
info
.
signal
=
SIGNAL_VOLUME_MUTED
;
}
else
if
(
!
strcmp
(
"intf-change"
,
psz_var
)
)
info
.
signal
=
SIGNAL_INTF_CHANGE
;
else
if
(
!
strcmp
(
"playlist-item-append"
,
psz_var
)
)
info
.
signal
=
SIGNAL_PLAYLIST_ITEM_APPEND
;
else
if
(
!
strcmp
(
"playlist-item-deleted"
,
psz_var
)
)
...
...
modules/control/dbus/dbus_common.h
View file @
06f2a64b
...
...
@@ -113,7 +113,6 @@ enum
{
SIGNAL_NONE
=
0
,
SIGNAL_ITEM_CURRENT
,
SIGNAL_INTF_CHANGE
,
SIGNAL_PLAYLIST_ITEM_APPEND
,
SIGNAL_PLAYLIST_ITEM_DELETED
,
SIGNAL_INPUT_METADATA
,
...
...
modules/gui/macosx/VLCMain.m
View file @
06f2a64b
...
...
@@ -233,8 +233,6 @@ static VLCMain *sharedInstance = nil;
_mainWindowController
=
[[
NSWindowController
alloc
]
initWithWindowNibName
:
@"MainWindow"
];
var_Create
(
p_intf
,
"intf-change"
,
VLC_VAR_BOOL
);
var_AddCallback
(
p_intf
->
obj
.
libvlc
,
"intf-toggle-fscontrol"
,
ShowController
,
(
__bridge
void
*
)
self
);
var_AddCallback
(
p_intf
->
obj
.
libvlc
,
"intf-show"
,
ShowController
,
(
__bridge
void
*
)
self
);
...
...
modules/gui/macosx/VLCPlaylistInfo.m
View file @
06f2a64b
...
...
@@ -378,7 +378,6 @@ FREENULL( psz_##foo );
playlist_t
*
p_playlist
=
pl_Get
(
getIntf
());
input_item_WriteMeta
(
VLC_OBJECT
(
p_playlist
),
p_item
);
var_SetBool
(
p_playlist
,
"intf-change"
,
true
);
[
self
updatePanelWithItem
:
p_item
];
[
_saveMetaDataButton
setEnabled
:
NO
];
...
...
modules/gui/ncurses.c
View file @
06f2a64b
...
...
@@ -1783,7 +1783,6 @@ static void cleanup_run(void *data)
{
intf_thread_t
*
intf
=
data
;
playlist_t
*
p_playlist
=
pl_Get
(
intf
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
intf
);
var_DelCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
intf
);
var_DelCallback
(
p_playlist
,
"playlist-item-append"
,
PlaylistChanged
,
intf
);
}
...
...
@@ -1797,7 +1796,6 @@ static void *Run(void *data)
intf_sys_t
*
sys
=
intf
->
p_sys
;
playlist_t
*
p_playlist
=
pl_Get
(
intf
);
var_AddCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
intf
);
var_AddCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
intf
);
var_AddCallback
(
p_playlist
,
"playlist-item-append"
,
PlaylistChanged
,
intf
);
...
...
src/playlist/engine.c
View file @
06f2a64b
...
...
@@ -412,9 +412,6 @@ void set_current_status_node( playlist_t * p_playlist,
static
void
VariablesInit
(
playlist_t
*
p_playlist
)
{
/* These variables control updates */
var_Create
(
p_playlist
,
"intf-change"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_playlist
,
"intf-change"
,
true
);
var_Create
(
p_playlist
,
"item-change"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"leaf-to-parent"
,
VLC_VAR_INTEGER
);
...
...
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