Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
1ffe7f9e
Commit
1ffe7f9e
authored
Aug 21, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: use stream_DemuxControl() - fixes #3145
parent
48c929bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+25
-17
No files found.
modules/access/rtp/rtp.c
View file @
1ffe7f9e
...
...
@@ -372,25 +372,12 @@ static int extract_port (char **phost)
/**
* Control callback
*/
static
int
Control
(
demux_t
*
demux
,
int
i_
query
,
va_list
args
)
static
int
Control
(
demux_t
*
demux
,
int
query
,
va_list
args
)
{
switch
(
i_query
)
{
case
DEMUX_GET_POSITION
:
{
float
*
v
=
va_arg
(
args
,
float
*
);
*
v
=
0
.;
return
VLC_SUCCESS
;
}
case
DEMUX_GET_LENGTH
:
case
DEMUX_GET_TIME
:
{
int64_t
*
v
=
va_arg
(
args
,
int64_t
*
);
*
v
=
0
;
return
VLC_SUCCESS
;
}
demux_sys_t
*
sys
=
demux
->
p_sys
;
switch
(
query
)
{
case
DEMUX_GET_PTS_DELAY
:
{
int64_t
*
v
=
va_arg
(
args
,
int64_t
*
);
...
...
@@ -408,6 +395,27 @@ static int Control (demux_t *demux, int i_query, va_list args)
}
}
if
(
sys
->
chained_demux
!=
NULL
)
return
stream_DemuxControlVa
(
sys
->
chained_demux
,
query
,
args
);
switch
(
query
)
{
case
DEMUX_GET_POSITION
:
{
float
*
v
=
va_arg
(
args
,
float
*
);
*
v
=
0
.;
return
VLC_SUCCESS
;
}
case
DEMUX_GET_LENGTH
:
case
DEMUX_GET_TIME
:
{
int64_t
*
v
=
va_arg
(
args
,
int64_t
*
);
*
v
=
0
;
return
VLC_SUCCESS
;
}
}
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