Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
915db260
Commit
915db260
authored
Sep 01, 2011
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpjitterbuffer: only reset skew on gap if input ts available
parent
1e17e10f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gst/rtpmanager/rtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.c
+6
-2
No files found.
gst/rtpmanager/rtpjitterbuffer.c
View file @
915db260
...
...
@@ -635,8 +635,12 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf,
rtptime
=
gst_rtp_buffer_get_timestamp
(
buf
);
/* rtp time jumps are checked for during skew calculation, but bypassed
* in other mode, so mind those here and reset jb if needed */
if
(
jbuf
->
mode
!=
RTP_JITTER_BUFFER_MODE_SLAVE
&&
* in other mode, so mind those here and reset jb if needed.
* Only reset if valid input time, which is likely for UDP input
* where we expect this might happen due to async thread effects
* (in seek and state change cycles), but not so much for TCP input */
if
(
GST_CLOCK_TIME_IS_VALID
(
time
)
&&
jbuf
->
mode
!=
RTP_JITTER_BUFFER_MODE_SLAVE
&&
jbuf
->
base_time
!=
-
1
&&
jbuf
->
last_rtptime
!=
-
1
)
{
GstClockTime
ext_rtptime
=
jbuf
->
ext_rtptime
;
...
...
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