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
2a8f6da9
Commit
2a8f6da9
authored
Jun 01, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
es_out: clean up.
parent
4e647fc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
45 deletions
+15
-45
src/input/es_out.c
src/input/es_out.c
+15
-45
No files found.
src/input/es_out.c
View file @
2a8f6da9
...
...
@@ -46,7 +46,6 @@ struct es_out_id_t
struct
es_out_sys_t
{
input_thread_t
*
p_input
;
vlc_bool_t
b_convert_ts_auto
;
/* automatically convert TimeStamp */
/* all es */
int
i_id
;
...
...
@@ -99,7 +98,6 @@ es_out_t *input_EsOutNew( input_thread_t *p_input )
out
->
p_sys
=
p_sys
;
p_sys
->
p_input
=
p_input
;
p_sys
->
b_convert_ts_auto
=
VLC_TRUE
;
p_sys
->
b_active
=
VLC_FALSE
;
p_sys
->
i_mode
=
ES_OUT_MODE_AUTO
;
...
...
@@ -450,9 +448,6 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
static
int
EsOutSend
(
es_out_t
*
out
,
es_out_id_t
*
es
,
block_t
*
p_block
)
{
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
if
(
p_sys
->
b_convert_ts_auto
)
{
pgrm_descriptor_t
*
p_pgrm
=
es
->
p_es
->
p_pgrm
;
input_thread_t
*
p_input
=
p_sys
->
p_input
;
...
...
@@ -472,7 +467,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
p_block
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_pgrm
,
(
p_block
->
i_pts
+
11
)
*
9
/
100
);
}
}
vlc_mutex_lock
(
&
out
->
p_sys
->
p_input
->
stream
.
stream_lock
);
p_block
->
i_rate
=
out
->
p_sys
->
p_input
->
stream
.
control
.
i_rate
;
...
...
@@ -701,30 +695,6 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
}
return
VLC_SUCCESS
;
case
ES_OUT_CONVERT_TIMESTAMP
:
case
ES_OUT_CONVERT_GROUP_TIMESTAMP
:
{
pgrm_descriptor_t
*
p_pgrm
=
NULL
;
if
(
i_query
==
ES_OUT_CONVERT_TIMESTAMP
)
{
p_pgrm
=
p_sys
->
p_input
->
stream
.
p_selected_program
;
}
else
{
int
i_group
=
(
int
)
va_arg
(
args
,
int
);
p_pgrm
=
input_FindProgram
(
p_sys
->
p_input
,
i_group
);
}
if
(
p_pgrm
)
{
int64_t
*
pi_ts
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_ts
=
input_ClockGetTS
(
p_sys
->
p_input
,
p_pgrm
,
(
*
pi_ts
+
11
)
*
9
/
100
);
}
p_sys
->
b_convert_ts_auto
=
VLC_FALSE
;
return
VLC_SUCCESS
;
}
default:
msg_Err
(
p_sys
->
p_input
,
"unknown query in es_out_Control"
);
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