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
d1bc2bc3
Commit
d1bc2bc3
authored
May 14, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug (glitch/segfault) when seeking.
parent
138766e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
31 deletions
+27
-31
include/input_ext-plugins.h
include/input_ext-plugins.h
+2
-3
src/input/input.c
src/input/input.c
+13
-10
src/input/input_clock.c
src/input/input_clock.c
+2
-2
src/input/input_dec.c
src/input/input_dec.c
+10
-16
No files found.
include/input_ext-plugins.h
View file @
d1bc2bc3
...
...
@@ -3,7 +3,7 @@
* but exported to plug-ins
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
* $Id: input_ext-plugins.h,v 1.2
5 2002/05/10 02:04:16 fenrir
Exp $
* $Id: input_ext-plugins.h,v 1.2
6 2002/05/14 21:23:44 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -81,8 +81,7 @@ vlc_thread_t input_RunDecoder( struct input_thread_s *,
struct
es_descriptor_s
*
);
void
input_EndDecoder
(
struct
input_thread_s
*
,
struct
es_descriptor_s
*
);
void
input_DecodePES
(
struct
decoder_fifo_s
*
,
struct
pes_packet_s
*
);
void
input_EscapeDiscontinuity
(
struct
input_thread_s
*
,
struct
pgrm_descriptor_s
*
);
void
input_EscapeDiscontinuity
(
struct
input_thread_s
*
);
void
input_EscapeAudioDiscontinuity
(
struct
input_thread_s
*
);
#else
# define input_DecodePES p_symbols->input_DecodePES
...
...
src/input/input.c
View file @
d1bc2bc3
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: input.c,v 1.19
4 2002/04/23 14:16:20 sam
Exp $
* $Id: input.c,v 1.19
5 2002/05/14 21:23:44 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -307,13 +307,14 @@ static int RunThread( input_thread_t *p_input )
p_input
->
pf_set_program
(
p_input
,
p_input
->
stream
.
p_new_program
);
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
);
for
(
i
=
0
;
i
<
p_input
->
stream
.
i_pgrm_number
;
i
++
)
{
pgrm_descriptor_t
*
p_pgrm
=
p_input
->
stream
.
pp_programs
[
i
];
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
,
p_pgrm
);
/* Reinitialize synchro. */
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
...
...
@@ -330,13 +331,14 @@ static int RunThread( input_thread_t *p_input )
p_input
->
pf_set_area
(
p_input
,
p_input
->
stream
.
p_new_area
);
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
);
for
(
i
=
0
;
i
<
p_input
->
stream
.
i_pgrm_number
;
i
++
)
{
pgrm_descriptor_t
*
p_pgrm
=
p_input
->
stream
.
pp_programs
[
i
];
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
,
p_pgrm
);
/* Reinitialize synchro. */
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
...
...
@@ -359,13 +361,14 @@ static int RunThread( input_thread_t *p_input )
p_input
->
pf_seek
(
p_input
,
i_new_pos
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
);
for
(
i
=
0
;
i
<
p_input
->
stream
.
i_pgrm_number
;
i
++
)
{
pgrm_descriptor_t
*
p_pgrm
=
p_input
->
stream
.
pp_programs
[
i
];
/* Escape all decoders for the stream discontinuity they
* will encounter. */
input_EscapeDiscontinuity
(
p_input
,
p_pgrm
);
/* Reinitialize synchro. */
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
...
...
src/input/input_clock.c
View file @
d1bc2bc3
...
...
@@ -2,7 +2,7 @@
* input_clock.c: Clock/System date convertions, stream management
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_clock.c,v 1.
29 2002/03/05 17:46:33 stef
Exp $
* $Id: input_clock.c,v 1.
30 2002/05/14 21:23:44 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -257,7 +257,7 @@ void input_ClockManageRef( input_thread_t * p_input,
intf_WarnMsg
(
1
,
"Clock gap, unexpected stream discontinuity"
);
input_ClockInit
(
p_pgrm
);
p_pgrm
->
i_synchro_state
=
SYNCHRO_START
;
input_EscapeDiscontinuity
(
p_input
,
p_pgrm
);
input_EscapeDiscontinuity
(
p_input
);
}
p_pgrm
->
last_cr
=
i_clock
;
...
...
src/input/input_dec.c
View file @
d1bc2bc3
...
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.3
3 2002/05/12 01:39:36
massiot Exp $
* $Id: input_dec.c,v 1.3
4 2002/05/14 21:23:44
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -159,14 +159,13 @@ void input_DecodePES( decoder_fifo_t * p_decoder_fifo, pes_packet_t * p_pes )
/*****************************************************************************
* input_EscapeDiscontinuity: send a NULL packet to the decoders
*****************************************************************************/
void
input_EscapeDiscontinuity
(
input_thread_t
*
p_input
,
pgrm_descriptor_t
*
p_pgrm
)
void
input_EscapeDiscontinuity
(
input_thread_t
*
p_input
)
{
int
i_es
,
i
;
for
(
i_es
=
0
;
i_es
<
p_
pgrm
->
i
_es_number
;
i_es
++
)
for
(
i_es
=
0
;
i_es
<
p_
input
->
stream
.
i_selected
_es_number
;
i_es
++
)
{
es_descriptor_t
*
p_es
=
p_
pgrm
->
pp
_es
[
i_es
];
es_descriptor_t
*
p_es
=
p_
input
->
stream
.
pp_selected
_es
[
i_es
];
if
(
p_es
->
p_decoder_fifo
!=
NULL
)
{
...
...
@@ -183,22 +182,17 @@ void input_EscapeDiscontinuity( input_thread_t * p_input,
*****************************************************************************/
void
input_EscapeAudioDiscontinuity
(
input_thread_t
*
p_input
)
{
int
i_
pgrm
,
i_
es
,
i
;
int
i_es
,
i
;
for
(
i_
pgrm
=
0
;
i_pgrm
<
p_input
->
stream
.
i_pgrm_number
;
i_pgrm
++
)
for
(
i_
es
=
0
;
i_es
<
p_input
->
stream
.
i_selected_es_number
;
i_es
++
)
{
pgrm_descriptor_t
*
p_pgrm
=
p_input
->
stream
.
pp_programs
[
i_pgrm
];
es_descriptor_t
*
p_es
=
p_input
->
stream
.
pp_selected_es
[
i_es
];
for
(
i_es
=
0
;
i_es
<
p_pgrm
->
i_es_number
;
i_es
++
)
if
(
p_es
->
p_decoder_fifo
!=
NULL
&&
p_es
->
b_audio
)
{
es_descriptor_t
*
p_es
=
p_pgrm
->
pp_es
[
i_es
];
if
(
p_es
->
p_decoder_fifo
!=
NULL
&&
p_es
->
b_audio
)
for
(
i
=
0
;
i
<
PADDING_PACKET_NUMBER
;
i
++
)
{
for
(
i
=
0
;
i
<
PADDING_PACKET_NUMBER
;
i
++
)
{
input_NullPacket
(
p_input
,
p_es
);
}
input_NullPacket
(
p_input
,
p_es
);
}
}
}
...
...
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