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
6bd0743b
Commit
6bd0743b
authored
Dec 07, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/es_out.c: cosmetic changes.
parent
c89488f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
33 deletions
+38
-33
src/input/es_out.c
src/input/es_out.c
+38
-33
No files found.
src/input/es_out.c
View file @
6bd0743b
...
...
@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: es_out.c,v 1.
7 2003/12/03 00:27:52 rocky
Exp $
* $Id: es_out.c,v 1.
8 2003/12/07 17:17:04 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -166,15 +166,20 @@ static void EsOutSelect( es_out_t *out, es_out_id_t *es, vlc_bool_t b_force )
if
(
i_cat
==
AUDIO_ES
)
{
if
(
p_sys
->
p_es_audio
&&
p_sys
->
p_es_audio
->
p_es
->
fmt
.
i_priority
>=
es
->
p_es
->
fmt
.
i_priority
)
if
(
p_sys
->
p_es_audio
&&
p_sys
->
p_es_audio
->
p_es
->
fmt
.
i_priority
>=
es
->
p_es
->
fmt
.
i_priority
)
{
return
;
}
i_wanted
=
p_sys
->
i_audio_last
>=
0
?
p_sys
->
i_audio_last
:
es
->
i_channel
;
i_wanted
=
p_sys
->
i_audio_last
>=
0
?
p_sys
->
i_audio_last
:
es
->
i_channel
;
}
else
if
(
i_cat
==
SPU_ES
)
{
if
(
p_sys
->
p_es_sub
&&
p_sys
->
p_es_sub
->
p_es
->
fmt
.
i_priority
>=
es
->
p_es
->
fmt
.
i_priority
)
if
(
p_sys
->
p_es_sub
&&
p_sys
->
p_es_sub
->
p_es
->
fmt
.
i_priority
>=
es
->
p_es
->
fmt
.
i_priority
)
{
return
;
}
...
...
@@ -447,17 +452,18 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
if
(
p_block
->
i_dts
>
0
)
{
p_block
->
i_dts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_block
->
i_dts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_block
->
i_dts
*
9
/
100
);
}
if
(
p_block
->
i_pts
>
0
)
{
p_block
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_block
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_block
->
i_pts
*
9
/
100
);
}
}
vlc_mutex_lock
(
&
out
->
p_sys
->
p_input
->
stream
.
stream_lock
);
if
(
es
->
p_es
->
p_dec
)
{
...
...
@@ -468,6 +474,7 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
block_Release
(
p_block
);
}
vlc_mutex_unlock
(
&
out
->
p_sys
->
p_input
->
stream
.
stream_lock
);
return
VLC_SUCCESS
;
}
...
...
@@ -579,7 +586,8 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
case
ES_OUT_SET_MODE
:
i
=
(
int
)
va_arg
(
args
,
int
);
if
(
i
==
ES_OUT_MODE_NONE
||
i
==
ES_OUT_MODE_ALL
||
i
==
ES_OUT_MODE_AUTO
)
if
(
i
==
ES_OUT_MODE_NONE
||
i
==
ES_OUT_MODE_ALL
||
i
==
ES_OUT_MODE_AUTO
)
{
vlc_value_t
val
;
...
...
@@ -654,7 +662,8 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
/* FIXME do it for all program */
if
(
p_sys
->
p_input
->
stream
.
p_selected_program
)
{
p_sys
->
p_input
->
stream
.
p_selected_program
->
i_synchro_state
=
SYNCHRO_REINIT
;
p_sys
->
p_input
->
stream
.
p_selected_program
->
i_synchro_state
=
SYNCHRO_REINIT
;
}
p_sys
->
b_pcr_set
=
VLC_TRUE
;
return
VLC_SUCCESS
;
...
...
@@ -664,7 +673,3 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
return
VLC_EGENERIC
;
}
}
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