Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
991b8fc1
Commit
991b8fc1
authored
Feb 12, 2001
by
Christophe Massiot
Browse files
* We can now seek at position 0 :p ;
* Fixed a typo in my previous commit.
parent
509d5ac4
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/input.h
View file @
991b8fc1
...
...
@@ -2,7 +2,7 @@
* input.h: structures of the input not exported to other modules
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: input.h,v 1.2
8
2001/02/
08 17:44
:1
2
massiot Exp $
* $Id: input.h,v 1.2
9
2001/02/
12 13:20
:1
4
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -34,6 +34,7 @@
* of data loss (this should be < 188). */
#define PADDING_PACKET_NUMBER 10
/* Number of padding packets top insert to
* escape a decoder. */
#define NO_SEEK -1
/*****************************************************************************
* Prototypes from input_ext-dec.c
...
...
src/input/input.c
View file @
991b8fc1
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.
79
2001/02/1
1 01:15:11 sam
Exp $
* $Id: input.c,v 1.
80
2001/02/1
2 13:20:14 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -105,7 +105,7 @@ input_thread_t *input_CreateThread ( playlist_item_t *p_item, int *pi_status )
p_input
->
stream
.
i_selected_es_number
=
0
;
p_input
->
stream
.
i_pgrm_number
=
0
;
p_input
->
stream
.
i_new_status
=
p_input
->
stream
.
i_new_rate
=
0
;
p_input
->
stream
.
i_seek
=
0
;
p_input
->
stream
.
i_seek
=
NO_SEEK
;
/* Initialize stream control properties. */
p_input
->
stream
.
control
.
i_status
=
PLAYING_S
;
...
...
@@ -198,7 +198,7 @@ static void RunThread( input_thread_t *p_input )
#endif
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
if
(
p_input
->
stream
.
i_seek
)
if
(
p_input
->
stream
.
i_seek
!=
NO_SEEK
)
{
if
(
p_input
->
stream
.
b_seekable
&&
p_input
->
pf_seek
!=
NULL
)
{
...
...
@@ -216,7 +216,7 @@ static void RunThread( input_thread_t *p_input )
p_pgrm
->
i_synchro_state
=
SYNCHRO_REINIT
;
}
}
p_input
->
stream
.
i_seek
=
0
;
p_input
->
stream
.
i_seek
=
NO_SEEK
;
}
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
...
...
src/video_parser/vpar_synchro.c
View file @
991b8fc1
...
...
@@ -2,7 +2,7 @@
* vpar_synchro.c : frame dropping routines
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_synchro.c,v 1.8
3
2001/02/12 1
1
:2
2:31
massiot Exp $
* $Id: vpar_synchro.c,v 1.8
4
2001/02/12 1
3
:2
0:15
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -583,7 +583,7 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
if
(
p_vpar
->
synchro
.
backward_pts
+
DEFAULT_PTS_DELAY
<
now
)
{
/* The same. */
p_vpar
->
synchro
.
current
_pts
=
0
;
p_vpar
->
synchro
.
backward
_pts
=
0
;
}
#ifdef STATS
...
...
Write
Preview
Supports
Markdown
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