Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4c19e527
Commit
4c19e527
authored
Feb 25, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: fixed sout-audio/video options.
parent
957af4c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
29 deletions
+18
-29
src/input/input_dec.c
src/input/input_dec.c
+9
-28
src/input/input_programs.c
src/input/input_programs.c
+9
-1
No files found.
src/input/input_dec.c
View file @
4c19e527
...
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: input_dec.c,v 1.9
0 2004/02/22 16:08:47
fenrir Exp $
* $Id: input_dec.c,v 1.9
1 2004/02/25 12:38:33
fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -96,34 +96,17 @@ decoder_t * input_RunDecoder( input_thread_t * p_input, es_descriptor_t * p_es )
vlc_value_t
val
;
/* If we are in sout mode, search for packetizer module */
var_Get
(
p_input
,
"sout"
,
&
val
);
if
(
!
p_es
->
b_force_decoder
&&
val
.
psz_string
&&
*
val
.
psz_string
)
if
(
!
p_es
->
b_force_decoder
&&
p_input
->
stream
.
p_sout
)
{
free
(
val
.
psz_string
);
val
.
b_bool
=
VLC_TRUE
;
if
(
p_es
->
i_cat
==
AUDIO_ES
)
{
var_Get
(
p_input
,
"sout-audio"
,
&
val
);
}
else
if
(
p_es
->
i_cat
==
VIDEO_ES
)
/* Create the decoder configuration structure */
p_dec
=
CreateDecoder
(
p_input
,
p_es
,
VLC_OBJECT_PACKETIZER
);
if
(
p_dec
==
NULL
)
{
var_Get
(
p_input
,
"sout-video"
,
&
val
);
msg_Err
(
p_input
,
"could not create packetizer"
);
return
NULL
;
}
if
(
val
.
b_bool
)
{
/* Create the decoder configuration structure */
p_dec
=
CreateDecoder
(
p_input
,
p_es
,
VLC_OBJECT_PACKETIZER
);
if
(
p_dec
==
NULL
)
{
msg_Err
(
p_input
,
"could not create packetizer"
);
return
NULL
;
}
p_dec
->
p_module
=
module_Need
(
p_dec
,
"packetizer"
,
"$packetizer"
);
}
p_dec
->
p_module
=
module_Need
(
p_dec
,
"packetizer"
,
"$packetizer"
);
}
else
{
...
...
@@ -137,11 +120,9 @@ decoder_t * input_RunDecoder( input_thread_t * p_input, es_descriptor_t * p_es )
/* default Get a suitable decoder module */
p_dec
->
p_module
=
module_Need
(
p_dec
,
"decoder"
,
"$codec"
);
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
}
if
(
!
p_dec
||
!
p_dec
->
p_module
)
if
(
!
p_dec
->
p_module
)
{
msg_Err
(
p_dec
,
"no suitable decoder module for fourcc `%4.4s'.
\n
"
"VLC probably does not support this sound or video format."
,
...
...
src/input/input_programs.c
View file @
4c19e527
...
...
@@ -2,7 +2,7 @@
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: input_programs.c,v 1.13
2 2004/02/22 16:40:25
fenrir Exp $
* $Id: input_programs.c,v 1.13
3 2004/02/25 12:38:33
fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -845,6 +845,10 @@ int input_SelectES( input_thread_t * p_input, es_descriptor_t * p_es )
if
(
p_es
->
i_cat
==
VIDEO_ES
||
p_es
->
i_cat
==
SPU_ES
)
{
var_Get
(
p_input
,
"video"
,
&
val
);
if
(
val
.
b_bool
&&
p_input
->
stream
.
p_sout
)
{
var_Get
(
p_input
,
"sout-video"
,
&
val
);
}
if
(
!
val
.
b_bool
)
{
msg_Dbg
(
p_input
,
"video is disabled, not selecting ES 0x%x"
,
...
...
@@ -856,6 +860,10 @@ int input_SelectES( input_thread_t * p_input, es_descriptor_t * p_es )
if
(
p_es
->
i_cat
==
AUDIO_ES
)
{
var_Get
(
p_input
,
"audio"
,
&
val
);
if
(
val
.
b_bool
&&
p_input
->
stream
.
p_sout
)
{
var_Get
(
p_input
,
"sout-audio"
,
&
val
);
}
if
(
!
val
.
b_bool
)
{
msg_Dbg
(
p_input
,
"audio is disabled, not selecting ES 0x%x"
,
...
...
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