Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ef9f3691
Commit
ef9f3691
authored
Jun 17, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add callback to spu-es from the input.
parent
e5127326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+13
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
ef9f3691
...
@@ -34,6 +34,8 @@ static int ChangeVideo( vlc_object_t *p_this, const char *var, vlc_value_t o,
...
@@ -34,6 +34,8 @@ static int ChangeVideo( vlc_object_t *p_this, const char *var, vlc_value_t o,
vlc_value_t
n
,
void
*
param
);
vlc_value_t
n
,
void
*
param
);
static
int
ChangeAudio
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
static
int
ChangeAudio
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
vlc_value_t
n
,
void
*
param
);
vlc_value_t
n
,
void
*
param
);
static
int
ChangeSPU
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
vlc_value_t
n
,
void
*
param
);
static
int
ItemChanged
(
vlc_object_t
*
,
const
char
*
,
static
int
ItemChanged
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
PLItemChanged
(
vlc_object_t
*
,
const
char
*
,
static
int
PLItemChanged
(
vlc_object_t
*
,
const
char
*
,
...
@@ -142,6 +144,8 @@ void InputManager::addCallbacks()
...
@@ -142,6 +144,8 @@ void InputManager::addCallbacks()
var_AddCallback
(
p_input
,
"audio-es"
,
ChangeAudio
,
this
);
var_AddCallback
(
p_input
,
"audio-es"
,
ChangeAudio
,
this
);
/* src/input/es-out.c:551 */
/* src/input/es-out.c:551 */
var_AddCallback
(
p_input
,
"video-es"
,
ChangeVideo
,
this
);
var_AddCallback
(
p_input
,
"video-es"
,
ChangeVideo
,
this
);
/* src/input/es-out.c:552 */
var_AddCallback
(
p_input
,
"spu-es"
,
ChangeSPU
,
this
);
/* src/input/input.c:1765 */
/* src/input/input.c:1765 */
var_AddCallback
(
p_input
,
"rate-change"
,
ItemRateChanged
,
this
);
var_AddCallback
(
p_input
,
"rate-change"
,
ItemRateChanged
,
this
);
/* src/input/input.c:2003 */
/* src/input/input.c:2003 */
...
@@ -153,6 +157,7 @@ void InputManager::addCallbacks()
...
@@ -153,6 +157,7 @@ void InputManager::addCallbacks()
/* Delete the callbacks on Input. Self explanatory */
/* Delete the callbacks on Input. Self explanatory */
void
InputManager
::
delCallbacks
()
void
InputManager
::
delCallbacks
()
{
{
var_DelCallback
(
p_input
,
"spu-es"
,
ChangeSPU
,
this
);
var_DelCallback
(
p_input
,
"audio-es"
,
ChangeAudio
,
this
);
var_DelCallback
(
p_input
,
"audio-es"
,
ChangeAudio
,
this
);
var_DelCallback
(
p_input
,
"video-es"
,
ChangeVideo
,
this
);
var_DelCallback
(
p_input
,
"video-es"
,
ChangeVideo
,
this
);
var_DelCallback
(
p_input
,
"state"
,
ItemStateChanged
,
this
);
var_DelCallback
(
p_input
,
"state"
,
ItemStateChanged
,
this
);
...
@@ -634,7 +639,6 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
...
@@ -634,7 +639,6 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
int
ChangeAudio
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
static
int
ChangeAudio
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
vlc_value_t
n
,
void
*
param
)
vlc_value_t
n
,
void
*
param
)
{
{
...
@@ -651,6 +655,14 @@ static int ChangeVideo( vlc_object_t *p_this, const char *var, vlc_value_t o,
...
@@ -651,6 +655,14 @@ static int ChangeVideo( vlc_object_t *p_this, const char *var, vlc_value_t o,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
int
ChangeSPU
(
vlc_object_t
*
p_this
,
const
char
*
var
,
vlc_value_t
o
,
vlc_value_t
n
,
void
*
param
)
{
InputManager
*
im
=
(
InputManager
*
)
param
;
im
->
b_has_subs
=
true
;
return
VLC_SUCCESS
;
}
/* MIM */
/* MIM */
static
int
PLItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
static
int
PLItemChanged
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
...
...
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