Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
92777ea1
Commit
92777ea1
authored
May 30, 2004
by
Laurent Aimar
Browse files
* input.c: set access2->b_die.
parent
82e174bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/input.c
View file @
92777ea1
...
...
@@ -340,7 +340,8 @@ input_thread_t *__input_CreateThread( vlc_object_t *p_parent,
*****************************************************************************/
void
input_StopThread
(
input_thread_t
*
p_input
)
{
demux_t
*
p_demux
;
demux_t
*
p_demux
;
access_t
*
p_access
;
/* Make the thread exit from a possible vlc_cond_wait() */
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
...
...
@@ -348,14 +349,21 @@ void input_StopThread( input_thread_t *p_input )
/* Request thread destruction */
/* Temporary demux2 hack */
p_demux
=
(
demux_t
*
)
vlc_object_find
(
p_input
,
VLC_OBJECT_DEMUX
,
FIND_CHILD
);
p_demux
=
(
demux_t
*
)
vlc_object_find
(
p_input
,
VLC_OBJECT_DEMUX
,
FIND_CHILD
);
if
(
p_demux
)
{
p_demux
->
b_die
=
1
;
vlc_object_release
(
p_demux
);
}
/* Temporary access2 hack */
p_access
=
(
access_t
*
)
vlc_object_find
(
p_input
,
VLC_OBJECT_ACCESS
,
FIND_CHILD
);
if
(
p_access
)
{
p_access
->
b_die
=
1
;
vlc_object_release
(
p_access
);
}
p_input
->
b_die
=
1
;
vlc_cond_signal
(
&
p_input
->
stream
.
stream_wait
);
...
...
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