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
67b16b1b
Commit
67b16b1b
authored
May 22, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used input_Close() where applicable.
parent
2176bf42
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
21 deletions
+8
-21
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+2
-4
src/control/media_player.c
src/control/media_player.c
+2
-7
src/input/vlm.c
src/input/vlm.c
+3
-8
src/playlist/thread.c
src/playlist/thread.c
+1
-2
No files found.
modules/services_discovery/podcast.c
View file @
67b16b1b
...
@@ -184,8 +184,7 @@ static void Close( vlc_object_t *p_this )
...
@@ -184,8 +184,7 @@ static void Close( vlc_object_t *p_this )
continue
;
continue
;
input_Stop
(
p_input
,
true
);
input_Stop
(
p_input
,
true
);
vlc_thread_join
(
p_input
);
input_Close
(
p_input
);
vlc_object_release
(
p_input
);
p_sd
->
p_sys
->
pp_input
[
i
]
=
NULL
;
p_sd
->
p_sys
->
pp_input
[
i
]
=
NULL
;
}
}
...
@@ -236,8 +235,7 @@ static void *Run( void *data )
...
@@ -236,8 +235,7 @@ static void *Run( void *data )
if
(
p_input
->
b_eof
||
p_input
->
b_error
)
if
(
p_input
->
b_eof
||
p_input
->
b_error
)
{
{
input_Stop
(
p_input
,
false
);
input_Stop
(
p_input
,
false
);
vlc_thread_join
(
p_input
);
input_Close
(
p_input
);
vlc_object_release
(
p_input
);
p_sd
->
p_sys
->
pp_input
[
i
]
=
NULL
;
p_sd
->
p_sys
->
pp_input
[
i
]
=
NULL
;
REMOVE_ELEM
(
p_sys
->
pp_input
,
p_sys
->
i_input
,
i
);
REMOVE_ELEM
(
p_sys
->
pp_input
,
p_sys
->
i_input
,
i
);
...
...
src/control/media_player.c
View file @
67b16b1b
...
@@ -129,6 +129,7 @@ static void release_input_thread( libvlc_media_player_t *p_mi, bool b_input_abor
...
@@ -129,6 +129,7 @@ static void release_input_thread( libvlc_media_player_t *p_mi, bool b_input_abor
input_thread_t
*
p_input_thread
=
p_mi
->
input
.
p_thread
;
input_thread_t
*
p_input_thread
=
p_mi
->
input
.
p_thread
;
if
(
!
p_input_thread
)
if
(
!
p_input_thread
)
return
;
return
;
p_mi
->
input
.
p_thread
=
NULL
;
var_DelCallback
(
p_input_thread
,
"can-seek"
,
var_DelCallback
(
p_input_thread
,
"can-seek"
,
input_seekable_changed
,
p_mi
);
input_seekable_changed
,
p_mi
);
...
@@ -139,13 +140,7 @@ static void release_input_thread( libvlc_media_player_t *p_mi, bool b_input_abor
...
@@ -139,13 +140,7 @@ static void release_input_thread( libvlc_media_player_t *p_mi, bool b_input_abor
/* We owned this one */
/* We owned this one */
input_Stop
(
p_input_thread
,
b_input_abort
);
input_Stop
(
p_input_thread
,
b_input_abort
);
input_Close
(
p_input_thread
);
vlc_thread_join
(
p_input_thread
);
assert
(
p_input_thread
->
b_dead
);
p_mi
->
input
.
p_thread
=
NULL
;
vlc_object_release
(
p_input_thread
);
}
}
/*
/*
...
...
src/input/vlm.c
View file @
67b16b1b
...
@@ -673,8 +673,7 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
...
@@ -673,8 +673,7 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
&
preparse
);
&
preparse
);
input_Stop
(
p_input
,
true
);
input_Stop
(
p_input
,
true
);
vlc_thread_join
(
p_input
);
input_Close
(
p_input
);
vlc_object_release
(
p_input
);
vlc_sem_destroy
(
&
sem_preparse
);
vlc_sem_destroy
(
&
sem_preparse
);
}
}
free
(
psz_header
);
free
(
psz_header
);
...
@@ -916,10 +915,8 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc
...
@@ -916,10 +915,8 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc
if
(
p_input
)
if
(
p_input
)
{
{
input_Stop
(
p_input
,
true
);
input_Stop
(
p_input
,
true
);
vlc_thread_join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
vlc_object_relea
se
(
p_input
);
input_Clo
se
(
p_input
);
vlm_SendEventMediaInstanceStopped
(
p_vlm
,
id
,
p_media
->
cfg
.
psz_name
);
vlm_SendEventMediaInstanceStopped
(
p_vlm
,
id
,
p_media
->
cfg
.
psz_name
);
}
}
...
@@ -1012,10 +1009,8 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
...
@@ -1012,10 +1009,8 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
input_Stop
(
p_input
,
true
);
input_Stop
(
p_input
,
true
);
vlc_thread_join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
vlc_object_relea
se
(
p_input
);
input_Clo
se
(
p_input
);
if
(
!
p_instance
->
b_sout_keep
)
if
(
!
p_instance
->
b_sout_keep
)
input_resource_TerminateSout
(
p_instance
->
p_input_resource
);
input_resource_TerminateSout
(
p_instance
->
p_input_resource
);
...
...
src/playlist/thread.c
View file @
67b16b1b
...
@@ -481,8 +481,7 @@ static int LoopInput( playlist_t *p_playlist )
...
@@ -481,8 +481,7 @@ static int LoopInput( playlist_t *p_playlist )
PL_LOCK
;
PL_LOCK
;
p_sys
->
p_input
=
NULL
;
p_sys
->
p_input
=
NULL
;
vlc_thread_join
(
p_input
);
input_Close
(
p_input
);
vlc_object_release
(
p_input
);
UpdateActivity
(
p_playlist
,
-
DEFAULT_INPUT_ACTIVITY
);
UpdateActivity
(
p_playlist
,
-
DEFAULT_INPUT_ACTIVITY
);
...
...
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