Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2b584641
Commit
2b584641
authored
Jan 28, 2013
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: remove useless event
parent
cce10ddd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+0
-38
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/src/vlcproc.hpp
+0
-1
No files found.
modules/gui/skins2/src/vlcproc.cpp
View file @
2b584641
...
...
@@ -157,7 +157,6 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"volume"
)
ADD_CALLBACK
(
pIntf
->
p_libvlc
,
"intf-toggle-fscontrol"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"activity"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"random"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"loop"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"repeat"
)
...
...
@@ -205,8 +204,6 @@ VlcProc::~VlcProc()
var_DelCallback
(
getIntf
()
->
p_libvlc
,
"intf-toggle-fscontrol"
,
onGenericCallback
,
this
);
var_DelCallback
(
getIntf
()
->
p_sys
->
p_playlist
,
"activity"
,
onGenericCallback
,
this
);
var_DelCallback
(
getIntf
()
->
p_sys
->
p_playlist
,
"random"
,
onGenericCallback
,
this
);
var_DelCallback
(
getIntf
()
->
p_sys
->
p_playlist
,
"loop"
,
...
...
@@ -367,7 +364,6 @@ int VlcProc::onGenericCallback( vlc_object_t *pObj, const char *pVariable,
} \
}
ADD_CALLBACK_ENTRY
(
"activity"
,
on_activity_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"volume"
,
on_volume_changed
,
true
)
ADD_CALLBACK_ENTRY
(
"bit-rate"
,
on_bit_rate_changed
,
false
)
...
...
@@ -444,40 +440,6 @@ int VlcProc::onGenericCallback2( vlc_object_t *pObj, const char *pVariable,
}
void
VlcProc
::
on_activity_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
)
{
(
void
)
p_obj
;
(
void
)
newVal
;
input_thread_t
*
p_input
=
getIntf
()
->
p_sys
->
p_input
;
if
(
!
p_input
)
return
;
input_item_t
*
p_item
=
input_GetItem
(
p_input
);
if
(
!
p_item
)
return
;
// Update short name
char
*
psz_name
=
input_item_GetName
(
p_item
);
SET_TEXT
(
m_cVarStreamName
,
UString
(
getIntf
(),
psz_name
)
);
free
(
psz_name
);
// Update local path (if possible) or full uri
char
*
psz_uri
=
input_item_GetURI
(
p_item
);
char
*
psz_path
=
make_path
(
psz_uri
);
char
*
psz_save
=
psz_path
?
psz_path
:
psz_uri
;
SET_TEXT
(
m_cVarStreamURI
,
UString
(
getIntf
(),
psz_save
)
);
free
(
psz_path
);
free
(
psz_uri
);
// Update art uri
char
*
psz_art
=
input_item_GetArtURL
(
p_item
);
SET_STRING
(
m_cVarStreamArt
,
string
(
psz_art
?
psz_art
:
""
)
);
free
(
psz_art
);
// Update playtree
getPlaytreeVar
().
onUpdateCurrent
(
true
);
}
void
VlcProc
::
on_intf_event_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
)
{
input_thread_t
*
pInput
=
(
input_thread_t
*
)
p_obj
;
...
...
modules/gui/skins2/src/vlcproc.hpp
View file @
2b584641
...
...
@@ -98,7 +98,6 @@ public:
/// update equalizer
void
update_equalizer
(
);
void
on_activity_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
);
void
on_intf_event_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
);
void
on_bit_rate_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
);
void
on_sample_rate_changed
(
vlc_object_t
*
p_obj
,
vlc_value_t
newVal
);
...
...
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