mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-19 17:03:55 +00:00
rtpsession: fix compilation
This commit is contained in:
parent
800b4bdb26
commit
8337c89c74
1 changed files with 5 additions and 5 deletions
|
@ -1100,15 +1100,15 @@ check_collision (RTPSession * sess, RTPSource * source,
|
||||||
/* If the source has been inactive for some time, we assume that it has
|
/* If the source has been inactive for some time, we assume that it has
|
||||||
* simply changed its transport source address. Hence, there is no true
|
* simply changed its transport source address. Hence, there is no true
|
||||||
* third-party collision - only a simulated one. */
|
* third-party collision - only a simulated one. */
|
||||||
if (arrival->time > source->last_activity) {
|
if (arrival->current_time > source->last_activity) {
|
||||||
GstClockTime inactivity_period = arrival->time - source->last_activity;
|
GstClockTime inactivity_period =
|
||||||
if (inactivity_period > 1*GST_SECOND) {
|
arrival->current_time - source->last_activity;
|
||||||
|
if (inactivity_period > 1 * GST_SECOND) {
|
||||||
/* Use new network address */
|
/* Use new network address */
|
||||||
if (rtp) {
|
if (rtp) {
|
||||||
g_assert (source->have_rtp_from);
|
g_assert (source->have_rtp_from);
|
||||||
rtp_source_set_rtp_from (source, &arrival->address);
|
rtp_source_set_rtp_from (source, &arrival->address);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
g_assert (source->have_rtcp_from);
|
g_assert (source->have_rtcp_from);
|
||||||
rtp_source_set_rtcp_from (source, &arrival->address);
|
rtp_source_set_rtcp_from (source, &arrival->address);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue