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
0eed3e6e
Commit
0eed3e6e
authored
Dec 31, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a bug in DecoderError.
* Temporary kludge for vlc_mpeg_adec=mad ./vlc ...
parent
93e8fcf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/input/input_dec.c
src/input/input_dec.c
+8
-2
src/input/input_ext-dec.c
src/input/input_ext-dec.c
+3
-1
No files found.
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/30 07:09:56 sam
Exp $
* $Id: input_dec.c,v 1.2
3 2001/12/31 03: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/30 07:09:56 sam
Exp $
* $Id: input_ext-dec.c,v 1.2
7 2001/12/31 03: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
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