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
cfd1271f
Commit
cfd1271f
authored
Nov 29, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more carefull on when rtpInfo timestamps should be set.
parent
96bb5767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/demux/live555.cpp
modules/demux/live555.cpp
+7
-4
No files found.
modules/demux/live555.cpp
View file @
cfd1271f
...
...
@@ -975,10 +975,10 @@ static int Play( demux_t *p_demux )
p_sys
->
i_pcr
=
0
;
#if (LIVEMEDIA_LIBRARY_VERSION_INT >= 1195257600)
/* TODO */
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
p_sys
->
track
[
i
]
->
i_pts
=
(
int64_t
)
(
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
timestamp
*
(
double
)
1000000.0
);
if
(
!
p_sys
->
track
[
i
]
->
b_rtcp_sync
)
p_sys
->
track
[
i
]
->
i_pts
=
(
int64_t
)
(
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
timestamp
*
(
double
)
1000000.0
);
p_sys
->
track
[
i
]
->
i_start_seq
=
(
int
)
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
seqNum
;
msg_Info
(
p_demux
,
"set startseq: %u"
,
p_sys
->
track
[
i
]
->
i_start_seq
);
}
...
...
@@ -1181,7 +1181,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
p_sys
->
rtsp
&&
p_sys
->
i_npt_length
>
0
)
{
int
i
;
time
=
f
*
(
double
)
p_sys
->
i_npt_length
/
1000000.0
;
/* in second */
time
=
f
*
(
double
)
p_sys
->
i_npt_length
/
(
double
)
1000000.0
;
/* in second */
if
(
!
p_sys
->
rtsp
->
playMediaSession
(
*
p_sys
->
ms
,
time
,
-
1
,
1
)
)
{
msg_Err
(
p_demux
,
"PLAY failed %s"
,
...
...
@@ -1194,6 +1194,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Retrieve RTP-Info values */
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
//if( !p_sys->track[i]->b_rtcp_sync )
p_sys
->
track
[
i
]
->
b_rtcp_sync
=
VLC_FALSE
;
p_sys
->
track
[
i
]
->
i_pts
=
(
int64_t
)
(
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
timestamp
*
(
double
)
1000000.0
);
p_sys
->
track
[
i
]
->
i_start_seq
=
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
seqNum
;
msg_Info
(
p_demux
,
"set pos startseq: %u"
,
p_sys
->
track
[
i
]
->
i_start_seq
);
...
...
@@ -1284,7 +1286,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
#if (LIVEMEDIA_LIBRARY_VERSION_INT >= 1195257600)
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
p_sys
->
track
[
i
]
->
i_pts
=
(
int64_t
)
(
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
timestamp
*
(
double
)
1000000.0
);
if
(
!
p_sys
->
track
[
i
]
->
b_rtcp_sync
)
p_sys
->
track
[
i
]
->
i_pts
=
0
;
// (int64_t) ( p_sys->track[i]->sub->rtpInfo.timestamp * (double)1000000.0 );
p_sys
->
track
[
i
]
->
i_start_seq
=
p_sys
->
track
[
i
]
->
sub
->
rtpInfo
.
seqNum
;
msg_Info
(
p_demux
,
"set pause startseq: %u"
,
p_sys
->
track
[
i
]
->
i_start_seq
);
}
...
...
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