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
e48f199d
Commit
e48f199d
authored
Dec 13, 2001
by
Johan Bilien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in ES input (I had not initiated p_selected_program)
parent
6a98da9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
plugins/mpeg_system/input_es.c
plugins/mpeg_system/input_es.c
+10
-8
No files found.
plugins/mpeg_system/input_es.c
View file @
e48f199d
...
...
@@ -2,7 +2,7 @@
* input_es.c: Elementary Stream demux and packet management
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: input_es.c,v 1.
4 2001/12/12 17:41:15 massiot
Exp $
* $Id: input_es.c,v 1.
5 2001/12/13 17:58:16 jobi
Exp $
*
* Author: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -165,14 +165,15 @@ static void ESInit( input_thread_t * p_input )
/* FIXME : detect if InitStream failed */
input_InitStream
(
p_input
,
0
);
input_AddProgram
(
p_input
,
0
,
0
);
p_input
->
stream
.
p_selected_program
=
p_input
->
stream
.
pp_programs
[
0
];
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_es
=
input_AddES
(
p_input
,
p_input
->
stream
.
p
p_programs
[
0
]
,
0xE0
,
0
);
p_es
=
input_AddES
(
p_input
,
p_input
->
stream
.
p
_selected_program
,
0xE0
,
0
);
p_es
->
i_stream_id
=
0xE0
;
p_es
->
i_type
=
MPEG1_VIDEO_ES
;
p_es
->
i_cat
=
VIDEO_ES
;
input_SelectES
(
p_input
,
p_es
);
p_input
->
stream
.
p_selected_area
->
i_tell
=
0
;
p_input
->
stream
.
p
p_programs
[
0
]
->
b_is_ok
=
1
;
p_input
->
stream
.
p
_selected_program
->
b_is_ok
=
1
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
...
...
@@ -266,7 +267,7 @@ static void ESDemux( input_thread_t * p_input, data_packet_t * p_data )
{
pes_packet_t
*
p_pes
=
p_input
->
pf_new_pes
(
p_input
->
p_method_data
);
decoder_fifo_t
*
p_fifo
=
p_input
->
stream
.
p
p_programs
[
0
]
->
pp_es
[
0
]
->
p_decoder_fifo
;
p_input
->
stream
.
p
_selected_program
->
pp_es
[
0
]
->
p_decoder_fifo
;
if
(
p_pes
==
NULL
)
{
...
...
@@ -279,13 +280,14 @@ static void ESDemux( input_thread_t * p_input, data_packet_t * p_data )
p_pes
->
p_first
=
p_pes
->
p_last
=
p_data
;
p_pes
->
i_nb_data
=
1
;
if
(
(
p_input
->
stream
.
pp_programs
[
0
]
->
i_synchro_state
==
SYNCHRO_REINIT
)
|
(
input_ClockManageControl
(
p_input
,
p_input
->
stream
.
pp_programs
[
0
],
(
mtime_t
)
0
)
==
PAUSE_S
)
)
if
(
(
p_input
->
stream
.
p_selected_program
->
i_synchro_state
==
SYNCHRO_REINIT
)
|
(
input_ClockManageControl
(
p_input
,
p_input
->
stream
.
p_selected_program
,
(
mtime_t
)
0
)
==
PAUSE_S
)
)
{
intf_WarnMsg
(
2
,
"synchro reinit"
);
p_pes
->
i_pts
=
mdate
()
+
DEFAULT_PTS_DELAY
;
p_input
->
stream
.
p
p_programs
[
0
]
->
i_synchro_state
=
SYNCHRO_OK
;
p_input
->
stream
.
p
_selected_program
->
i_synchro_state
=
SYNCHRO_OK
;
}
input_DecodePES
(
p_fifo
,
p_pes
);
...
...
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