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
a7d4b90c
Commit
a7d4b90c
authored
Jan 28, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Be sure to update the meta on Playlist Change.
parent
95b46803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+8
-6
No files found.
modules/gui/qt4/input_manager.cpp
View file @
a7d4b90c
...
...
@@ -145,6 +145,8 @@ void InputManager::customEvent( QEvent *event )
type
!=
ItemStateChanged_Type
)
return
;
msg_Dbg
(
p_intf
,
"New IM Event, type: %i"
,
type
);
/* Delete the input */
if
(
!
p_input
||
p_input
->
b_dead
||
p_input
->
b_die
)
{
...
...
@@ -407,10 +409,10 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
// No necessary, I think
//var_AddCallback( THEPL, "intf-change", ItemChanged, im );
//var_AddCallback( THEPL, "playlist-current", ItemChanged, im );
var_AddCallback
(
THEPL
,
"item-change"
,
PLItemChanged
,
this
);
var_AddCallback
(
THEPL
,
"playlist-current"
,
PLItemChanged
,
this
);
var_AddCallback
(
THEPL
,
"playlist-current"
,
ItemChanged
,
im
);
var_AddCallback
(
THEPL
,
"activity"
,
PLItemChanged
,
this
);
var_AddCallback
(
p_intf
->
p_libvlc
,
"volume-change"
,
VolumeChanged
,
this
);
...
...
@@ -440,7 +442,6 @@ MainInputManager::~MainInputManager()
void
MainInputManager
::
customEvent
(
QEvent
*
event
)
{
int
type
=
event
->
type
();
msg_Dbg
(
p_intf
,
"New MIM Event, type: %i"
,
type
);
if
(
type
!=
ItemChanged_Type
&&
type
!=
VolumeChanged_Type
)
return
;
...
...
@@ -450,6 +451,7 @@ void MainInputManager::customEvent( QEvent *event )
return
;
}
msg_Dbg
(
p_intf
,
"New MIM Event, type: %i"
,
type
);
/* Should be PLItemChanged */
if
(
VLC_OBJECT_INTF
==
p_intf
->
i_object_type
)
{
...
...
@@ -591,20 +593,20 @@ static int ChangeVideo( vlc_object_t *p_this, const char *var, vlc_value_t o,
static
int
PLItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
MainInputManager
*
im
=
(
MainInputManager
*
)
param
;
MainInputManager
*
m
im
=
(
MainInputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
ItemChanged_Type
,
newval
.
i_int
);
QApplication
::
postEvent
(
im
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
m
im
,
static_cast
<
QEvent
*>
(
event
)
);
return
VLC_SUCCESS
;
}
static
int
VolumeChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
MainInputManager
*
im
=
(
MainInputManager
*
)
param
;
MainInputManager
*
m
im
=
(
MainInputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
VolumeChanged_Type
,
newval
.
i_int
);
QApplication
::
postEvent
(
im
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
m
im
,
static_cast
<
QEvent
*>
(
event
)
);
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