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
7cf467ae
Commit
7cf467ae
authored
Dec 03, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: input_manager: merge loop&repeat events.
Definitively doing the same thing.
parent
77d242cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
27 deletions
+9
-27
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+8
-25
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-2
No files found.
modules/gui/qt4/input_manager.cpp
View file @
7cf467ae
...
...
@@ -58,11 +58,8 @@ static int SoundMuteChanged( vlc_object_t *, const char *,
static
int
RandomChanged
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
LoopChanged
(
vlc_object_t
*
,
const
char
*
,
static
int
Loop
OrRepeat
Changed
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
RepeatChanged
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
InputEvent
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -956,8 +953,8 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
var_AddCallback
(
THEPL
,
"playlist-item-append"
,
PLItemAppended
,
this
);
var_AddCallback
(
THEPL
,
"playlist-item-deleted"
,
PLItemRemoved
,
this
);
var_AddCallback
(
THEPL
,
"random"
,
RandomChanged
,
this
);
var_AddCallback
(
THEPL
,
"repeat"
,
RepeatChanged
,
this
);
var_AddCallback
(
THEPL
,
"loop"
,
LoopChanged
,
this
);
var_AddCallback
(
THEPL
,
"repeat"
,
LoopOr
RepeatChanged
,
this
);
var_AddCallback
(
THEPL
,
"loop"
,
Loop
OrRepeat
Changed
,
this
);
var_AddCallback
(
THEPL
,
"volume"
,
VolumeChanged
,
this
);
var_AddCallback
(
THEPL
,
"mute"
,
SoundMuteChanged
,
this
);
...
...
@@ -988,8 +985,8 @@ MainInputManager::~MainInputManager()
var_DelCallback
(
THEPL
,
"playlist-item-append"
,
PLItemAppended
,
this
);
var_DelCallback
(
THEPL
,
"playlist-item-deleted"
,
PLItemRemoved
,
this
);
var_DelCallback
(
THEPL
,
"random"
,
RandomChanged
,
this
);
var_DelCallback
(
THEPL
,
"repeat"
,
RepeatChanged
,
this
);
var_DelCallback
(
THEPL
,
"loop"
,
LoopChanged
,
this
);
var_DelCallback
(
THEPL
,
"repeat"
,
LoopOr
RepeatChanged
,
this
);
var_DelCallback
(
THEPL
,
"loop"
,
Loop
OrRepeat
Changed
,
this
);
/* Save some interface state in configuration, at module quit */
config_PutInt
(
p_intf
,
"random"
,
var_GetBool
(
THEPL
,
"random"
)
);
...
...
@@ -1040,8 +1037,7 @@ void MainInputManager::customEvent( QEvent *event )
case
RandomChanged_Type
:
emit
randomChanged
(
var_GetBool
(
THEPL
,
"random"
)
);
return
;
case
LoopChanged_Type
:
case
RepeatChanged_Type
:
case
LoopOrRepeatChanged_Type
:
notifyRepeatLoop
();
return
;
case
LeafToParent_Type
:
...
...
@@ -1286,27 +1282,14 @@ static int RandomChanged
return
VLC_SUCCESS
;
}
/* Probably could be merged with next callback */
static
int
LoopChanged
(
vlc_object_t
*
obj
,
const
char
*
var
,
vlc_value_t
old
,
vlc_value_t
cur
,
void
*
data
)
{
VLC_UNUSED
(
obj
);
VLC_UNUSED
(
var
);
VLC_UNUSED
(
old
);
VLC_UNUSED
(
cur
);
MainInputManager
*
mim
=
static_cast
<
MainInputManager
*>
(
data
);
IMEvent
*
event
=
new
IMEvent
(
LoopChanged_Type
);
QApplication
::
postEvent
(
mim
,
event
);
return
VLC_SUCCESS
;
}
static
int
RepeatChanged
static
int
LoopOrRepeatChanged
(
vlc_object_t
*
obj
,
const
char
*
var
,
vlc_value_t
old
,
vlc_value_t
cur
,
void
*
data
)
{
VLC_UNUSED
(
obj
);
VLC_UNUSED
(
var
);
VLC_UNUSED
(
old
);
VLC_UNUSED
(
cur
);
MainInputManager
*
mim
=
static_cast
<
MainInputManager
*>
(
data
);
IMEvent
*
event
=
new
IMEvent
(
RepeatChanged_Type
);
IMEvent
*
event
=
new
IMEvent
(
LoopOr
RepeatChanged_Type
);
QApplication
::
postEvent
(
mim
,
event
);
return
VLC_SUCCESS
;
}
modules/gui/qt4/input_manager.hpp
View file @
7cf467ae
...
...
@@ -60,8 +60,7 @@ enum {
RecordingEvent_Type
,
ProgramChanged_Type
,
RandomChanged_Type
,
LoopChanged_Type
,
RepeatChanged_Type
,
LoopOrRepeatChanged_Type
,
LeafToParent_Type
,
EPGEvent_Type
,
/* SignalChanged_Type, */
...
...
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