mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
rtpsession: unify nested if clauses
This commit is contained in:
parent
0e6a31411b
commit
7d7840cc4a
1 changed files with 8 additions and 10 deletions
|
@ -3247,16 +3247,14 @@ session_cleanup (const gchar * key, RTPSource * source, ReportData * data)
|
||||||
GST_LOG ("timeout base interval %" GST_TIME_FORMAT,
|
GST_LOG ("timeout base interval %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (binterval));
|
GST_TIME_ARGS (binterval));
|
||||||
|
|
||||||
if (!source->internal) {
|
if (!source->internal && source->marked_bye) {
|
||||||
if (source->marked_bye) {
|
/* if we received a BYE from the source, remove the source after some
|
||||||
/* if we received a BYE from the source, remove the source after some
|
* time. */
|
||||||
* time. */
|
if (data->current_time > source->bye_time &&
|
||||||
if (data->current_time > source->bye_time &&
|
data->current_time - source->bye_time > sess->stats.bye_timeout) {
|
||||||
data->current_time - source->bye_time > sess->stats.bye_timeout) {
|
GST_DEBUG ("removing BYE source %08x", source->ssrc);
|
||||||
GST_DEBUG ("removing BYE source %08x", source->ssrc);
|
remove = TRUE;
|
||||||
remove = TRUE;
|
byetimeout = TRUE;
|
||||||
byetimeout = TRUE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue