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
ba616997
Commit
ba616997
authored
Jan 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rename ES_OUT_SET_PCR into ES_OUT_SET_GROUP_PCR, now ES_OUT_SET_PCR
apply to the selected program.
parent
5cfcac85
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
14 deletions
+23
-14
include/ninput.h
include/ninput.h
+3
-2
modules/demux/nsv.c
modules/demux/nsv.c
+2
-2
modules/demux/real.c
modules/demux/real.c
+5
-5
src/input/es_out.c
src/input/es_out.c
+13
-5
No files found.
include/ninput.h
View file @
ba616997
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ninput.h
* ninput.h
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ninput.h,v 1.2
2 2004/01/06 21:42:43 sigmunau
Exp $
* $Id: ninput.h,v 1.2
3 2004/01/07 15:31:31 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -52,7 +52,8 @@ enum es_out_query_e
...
@@ -52,7 +52,8 @@ enum es_out_query_e
ES_OUT_GET_ES_STATE
,
/* arg1= es_out_id_t* arg2=vlc_bool_t* */
ES_OUT_GET_ES_STATE
,
/* arg1= es_out_id_t* arg2=vlc_bool_t* */
/* XXX XXX XXX Don't use them YET !!! */
/* XXX XXX XXX Don't use them YET !!! */
ES_OUT_SET_PCR
,
/* arg1= int i_group, arg2=int64_t i_pcr(microsecond!)*/
ES_OUT_SET_PCR
,
/* arg1=int64_t i_pcr(microsecond!) (using default group 0)*/
ES_OUT_SET_GROUP_PCR
,
/* arg1= int i_group, arg2=int64_t i_pcr(microsecond!)*/
ES_OUT_RESET_PCR
,
/* no arg */
ES_OUT_RESET_PCR
,
/* no arg */
};
};
...
...
modules/demux/nsv.c
View file @
ba616997
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* nsv.c: NullSoft Video demuxer.
* nsv.c: NullSoft Video demuxer.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* Copyright (C) 2004 VideoLAN
* $Id: nsv.c,v 1.
3 2004/01/07 14:59:37
fenrir Exp $
* $Id: nsv.c,v 1.
4 2004/01/07 15:31:31
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -192,7 +192,7 @@ static int Demux( demux_t *p_demux )
...
@@ -192,7 +192,7 @@ static int Demux( demux_t *p_demux )
}
}
/* Set PCR */
/* Set PCR */
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int
)
0
,
(
int
64_t
)
p_sys
->
i_pcr
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_sys
->
i_pcr
);
/* Read video */
/* Read video */
i_size
=
(
header
[
0
]
>>
4
)
|
(
header
[
1
]
<<
4
)
|
(
header
[
2
]
<<
12
);
i_size
=
(
header
[
0
]
>>
4
)
|
(
header
[
1
]
<<
4
)
|
(
header
[
2
]
<<
12
);
...
...
modules/demux/real.c
View file @
ba616997
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* real.c: Real demuxer.
* real.c: Real demuxer.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* Copyright (C) 2004 VideoLAN
* $Id: real.c,v 1.
1 2004/01/04 14:35:12
fenrir Exp $
* $Id: real.c,v 1.
2 2004/01/07 15:31:31
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -314,7 +314,7 @@ static int Demux( demux_t *p_demux )
...
@@ -314,7 +314,7 @@ static int Demux( demux_t *p_demux )
{
{
p_sys
->
i_pcr
=
tk
->
p_frame
->
i_dts
;
p_sys
->
i_pcr
=
tk
->
p_frame
->
i_dts
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int
)
0
,
(
int
64_t
)
p_sys
->
i_pcr
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_sys
->
i_pcr
);
}
}
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
tk
->
p_frame
);
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
tk
->
p_frame
);
...
@@ -383,7 +383,7 @@ static int Demux( demux_t *p_demux )
...
@@ -383,7 +383,7 @@ static int Demux( demux_t *p_demux )
if( p_sys->i_pcr < tk->p_frame->i_dts )
if( p_sys->i_pcr < tk->p_frame->i_dts )
{
{
p_sys->i_pcr = tk->p_frame->i_dts;
p_sys->i_pcr = tk->p_frame->i_dts;
es_out_Control( p_demux->out, ES_OUT_SET_PCR, (int
)0, (int
64_t)p_sys->i_pcr );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, (int64_t)p_sys->i_pcr );
}
}
es_out_Send( p_demux->out, tk->p_es, tk->p_frame );
es_out_Send( p_demux->out, tk->p_es, tk->p_frame );
...
@@ -420,7 +420,7 @@ static int Demux( demux_t *p_demux )
...
@@ -420,7 +420,7 @@ static int Demux( demux_t *p_demux )
if( p_sys->i_pcr < p_frame->i_dts )
if( p_sys->i_pcr < p_frame->i_dts )
{
{
p_sys->i_pcr = p_frame->i_dts;
p_sys->i_pcr = p_frame->i_dts;
es_out_Control( p_demux->out, ES_OUT_SET_PCR, (int
)0, (int
64_t)p_sys->i_pcr );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, (int64_t)p_sys->i_pcr );
}
}
es_out_Send( p_demux->out, tk->p_es, p_frame );
es_out_Send( p_demux->out, tk->p_es, p_frame );
}
}
...
@@ -475,7 +475,7 @@ static int Demux( demux_t *p_demux )
...
@@ -475,7 +475,7 @@ static int Demux( demux_t *p_demux )
{
{
p_sys
->
i_pcr
=
i_pts
;
p_sys
->
i_pcr
=
i_pts
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int
)
0
,
(
int
64_t
)
p_sys
->
i_pcr
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_sys
->
i_pcr
);
}
}
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_block
);
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_block
);
}
}
...
...
src/input/es_out.c
View file @
ba616997
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input.
* es_out.c: Es Out handler for input.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
* Copyright (C) 2003-2004 VideoLAN
* $Id: es_out.c,v 1.1
4 2004/01/06 12:02:06 zorglub
Exp $
* $Id: es_out.c,v 1.1
5 2004/01/07 15:31:31 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -588,8 +588,6 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
...
@@ -588,8 +588,6 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
vlc_bool_t
b
,
*
pb
;
vlc_bool_t
b
,
*
pb
;
int
i
,
*
pi
;
int
i
,
*
pi
;
int
i_group
;
int64_t
i_pcr
;
es_out_id_t
*
es
;
es_out_id_t
*
es
;
...
@@ -699,14 +697,24 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
...
@@ -699,14 +697,24 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
ES_OUT_SET_PCR
:
case
ES_OUT_SET_PCR
:
case
ES_OUT_SET_GROUP_PCR
:
{
{
pgrm_descriptor_t
*
p_prgm
=
NULL
;
pgrm_descriptor_t
*
p_prgm
=
NULL
;
int64_t
i_pcr
;
i_group
=
(
int
)
va_arg
(
args
,
int
);
if
(
i_query
==
ES_OUT_SET_PCR
)
{
p_prgm
=
p_sys
->
p_input
->
stream
.
p_selected_program
;
}
else
{
int
i_group
=
(
int
)
va_arg
(
args
,
int
);
p_prgm
=
input_FindProgram
(
p_sys
->
p_input
,
i_group
);
}
i_pcr
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
i_pcr
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
/* search program */
/* search program */
if
(
(
p_prgm
=
input_FindProgram
(
p_sys
->
p_input
,
i_group
)
)
)
if
(
p_prgm
)
{
{
input_ClockManageRef
(
p_sys
->
p_input
,
p_prgm
,
i_pcr
*
9
/
100
);
input_ClockManageRef
(
p_sys
->
p_input
,
p_prgm
,
i_pcr
*
9
/
100
);
}
}
...
...
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