Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e59ff9f6
Commit
e59ff9f6
authored
Nov 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use intf-change in maemo gui.
parent
1ae86f62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
modules/gui/maemo/maemo_input.c
modules/gui/maemo/maemo_input.c
+17
-6
No files found.
modules/gui/maemo/maemo_input.c
View file @
e59ff9f6
...
@@ -30,6 +30,10 @@
...
@@ -30,6 +30,10 @@
#include "maemo.h"
#include "maemo.h"
#include "maemo_input.h"
#include "maemo_input.h"
static
int
input_event_cb
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
);
gboolean
process_events
(
gpointer
data
)
gboolean
process_events
(
gpointer
data
)
{
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
data
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
data
;
...
@@ -60,8 +64,7 @@ void set_input( intf_thread_t *p_intf, input_thread_t *p_input )
...
@@ -60,8 +64,7 @@ void set_input( intf_thread_t *p_intf, input_thread_t *p_input )
{
{
p_intf
->
p_sys
->
p_input
=
p_input
;
p_intf
->
p_sys
->
p_input
=
p_input
;
vlc_object_hold
(
p_input
);
vlc_object_hold
(
p_input
);
var_AddCallback
(
p_input
,
"intf-change"
,
interface_changed_cb
,
p_intf
);
var_AddCallback
(
p_input
,
"intf-event"
,
input_event_cb
,
p_intf
);
var_AddCallback
(
p_input
,
"state"
,
item_changed_cb
,
p_intf
);
// "Activate" the seekbar
// "Activate" the seekbar
gtk_widget_set_sensitive
(
GTK_WIDGET
(
p_intf
->
p_sys
->
p_seekbar
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
p_intf
->
p_sys
->
p_seekbar
),
TRUE
);
...
@@ -74,10 +77,8 @@ void delete_input( intf_thread_t *p_intf )
...
@@ -74,10 +77,8 @@ void delete_input( intf_thread_t *p_intf )
{
{
if
(
p_intf
->
p_sys
->
p_input
)
if
(
p_intf
->
p_sys
->
p_input
)
{
{
var_DelCallback
(
p_intf
->
p_sys
->
p_input
,
"intf-change"
,
var_DelCallback
(
p_intf
->
p_sys
->
p_input
,
"intf-event"
,
interface_changed_cb
,
p_intf
);
input_event_cb
,
p_intf
);
var_DelCallback
(
p_intf
->
p_sys
->
p_input
,
"state"
,
item_changed_cb
,
p_intf
);
vlc_object_release
(
p_intf
->
p_sys
->
p_input
);
vlc_object_release
(
p_intf
->
p_sys
->
p_input
);
p_intf
->
p_sys
->
p_input
=
NULL
;
p_intf
->
p_sys
->
p_input
=
NULL
;
...
@@ -187,3 +188,13 @@ int interface_changed_cb( vlc_object_t *p_this, const char *psz_var,
...
@@ -187,3 +188,13 @@ int interface_changed_cb( vlc_object_t *p_this, const char *psz_var,
vlc_spin_unlock
(
&
p_intf
->
p_sys
->
event_lock
);
vlc_spin_unlock
(
&
p_intf
->
p_sys
->
event_lock
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
int
input_event_cb
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
if
(
newval
.
i_int
==
INPUT_EVENT_STATE
)
return
item_changed_cb
(
p_this
,
psz_var
,
oldval
,
newval
,
param
);
else
return
interface_changed_cb
(
p_this
,
psz_var
,
oldval
,
newval
,
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