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
bdcdf970
Commit
bdcdf970
authored
Feb 05, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: merge ABORT and DEAD events
parent
baa8b2e1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
28 deletions
+7
-28
include/vlc_input.h
include/vlc_input.h
+0
-2
lib/media_player.c
lib/media_player.c
+1
-1
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+0
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+0
-5
src/input/event.c
src/input/event.c
+0
-4
src/input/event.h
src/input/event.h
+0
-1
src/input/input.c
src/input/input.c
+6
-14
No files found.
include/vlc_input.h
View file @
bdcdf970
...
...
@@ -335,8 +335,6 @@ typedef enum input_event_type_e
INPUT_EVENT_STATE
,
/* b_dead is true */
INPUT_EVENT_DEAD
,
/* a *user* abort has been requested */
INPUT_EVENT_ABORT
,
/* "rate" has changed */
INPUT_EVENT_RATE
,
...
...
lib/media_player.c
View file @
bdcdf970
...
...
@@ -302,7 +302,7 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
set_state
(
p_mi
,
libvlc_state
,
false
);
libvlc_event_send
(
p_mi
->
p_event_manager
,
&
event
);
}
else
if
(
newval
.
i_int
==
INPUT_EVENT_
ABORT
)
else
if
(
newval
.
i_int
==
INPUT_EVENT_
DEAD
)
{
libvlc_state_t
libvlc_state
=
libvlc_Stopped
;
event
.
type
=
libvlc_MediaPlayerStopped
;
...
...
modules/control/dbus/dbus.c
View file @
bdcdf970
...
...
@@ -893,7 +893,6 @@ static int InputCallback( vlc_object_t *p_this, const char *psz_var,
switch
(
newval
.
i_int
)
{
case
INPUT_EVENT_DEAD
:
case
INPUT_EVENT_ABORT
:
i_state
=
PLAYBACK_STATE_STOPPED
;
break
;
case
INPUT_EVENT_STATE
:
...
...
modules/gui/macosx/intf.m
View file @
bdcdf970
...
...
@@ -376,11 +376,6 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
case
INPUT_EVENT_ABORT
:
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updateName
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
default:
break
;
}
...
...
src/input/event.c
View file @
bdcdf970
...
...
@@ -55,10 +55,6 @@ void input_SendEventDead( input_thread_t *p_input )
Trigger
(
p_input
,
INPUT_EVENT_DEAD
);
}
void
input_SendEventAbort
(
input_thread_t
*
p_input
)
{
Trigger
(
p_input
,
INPUT_EVENT_ABORT
);
}
void
input_SendEventPosition
(
input_thread_t
*
p_input
,
double
f_position
,
mtime_t
i_time
)
{
...
...
src/input/event.h
View file @
bdcdf970
...
...
@@ -30,7 +30,6 @@
* Event for input.c
*****************************************************************************/
void
input_SendEventDead
(
input_thread_t
*
p_input
);
void
input_SendEventAbort
(
input_thread_t
*
p_input
);
void
input_SendEventPosition
(
input_thread_t
*
p_input
,
double
f_position
,
mtime_t
i_time
);
void
input_SendEventLength
(
input_thread_t
*
p_input
,
mtime_t
i_length
);
void
input_SendEventStatistics
(
input_thread_t
*
p_input
);
...
...
src/input/input.c
View file @
bdcdf970
...
...
@@ -527,22 +527,14 @@ static void *Run( void *obj )
input_thread_t
*
p_input
=
(
input_thread_t
*
)
obj
;
const
int
canc
=
vlc_savecancel
();
if
(
Init
(
p_input
)
)
goto
exit
;
MainLoop
(
p_input
,
true
);
/* FIXME it can be wrong (like with VLM) */
/* Clean up */
End
(
p_input
);
if
(
!
Init
(
p_input
)
)
{
MainLoop
(
p_input
,
true
);
/* FIXME it can be wrong (like with VLM) */
exit:
/* Tell we're dead */
vlc_mutex_lock
(
&
p_input
->
p
->
lock_control
);
const
bool
b_abort
=
p_input
->
p
->
b_abort
;
vlc_mutex_unlock
(
&
p_input
->
p
->
lock_control
);
/* Clean up */
End
(
p_input
);
}
if
(
b_abort
)
input_SendEventAbort
(
p_input
);
input_SendEventDead
(
p_input
);
vlc_restorecancel
(
canc
);
...
...
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