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
0eed3e6e
Commit
0eed3e6e
authored
Dec 31, 2001
by
Christophe Massiot
Browse files
* Fixed a bug in DecoderError.
* Temporary kludge for vlc_mpeg_adec=mad ./vlc ...
parent
93e8fcf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/input/input_dec.c
View file @
0eed3e6e
...
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.2
2
2001/12/3
0
0
7:09:56 sam
Exp $
* $Id: input_dec.c,v 1.2
3
2001/12/3
1
0
3:26:27 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -47,11 +47,17 @@ vlc_thread_t input_RunDecoder( input_thread_t * p_input,
{
probedata_t
probedata
;
vlc_thread_t
thread_id
;
char
*
psz_plugin
=
NULL
;
/* Get a suitable module */
probedata
.
i_type
=
p_es
->
i_type
;
p_es
->
p_module
=
module_Need
(
MODULE_CAPABILITY_DECODER
,
NULL
,
&
probedata
);
if
(
p_es
->
i_type
==
MPEG1_AUDIO_ES
||
p_es
->
i_type
==
MPEG2_AUDIO_ES
)
{
psz_plugin
=
main_GetPszVariable
(
ADEC_MPEG_VAR
,
NULL
);
}
p_es
->
p_module
=
module_Need
(
MODULE_CAPABILITY_DECODER
,
psz_plugin
,
&
probedata
);
if
(
p_es
->
p_module
==
NULL
)
{
intf_ErrMsg
(
"input error: no suitable decoder module for type 0x%x"
,
...
...
src/input/input_ext-dec.c
View file @
0eed3e6e
...
...
@@ -2,7 +2,7 @@
* input_ext-dec.c: services to the decoders
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_ext-dec.c,v 1.2
6
2001/12/3
0
0
7:09:56 sam
Exp $
* $Id: input_ext-dec.c,v 1.2
7
2001/12/3
1
0
3:26:27 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -95,6 +95,8 @@ void DecoderError( decoder_fifo_t * p_fifo )
{
/* Trash all received PES packets */
p_fifo
->
pf_delete_pes
(
p_fifo
->
p_packets_mgt
,
p_fifo
->
p_first
);
p_fifo
->
p_first
=
NULL
;
p_fifo
->
pp_last
=
&
p_fifo
->
p_first
;
/* Waiting for the input thread to put new PES packets in the fifo */
vlc_cond_wait
(
&
p_fifo
->
data_wait
,
&
p_fifo
->
data_lock
);
...
...
Write
Preview
Supports
Markdown
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