Commit 7d7840cc authored by George Kiagiadakis's avatar George Kiagiadakis Committed by Wim Taymans
Browse files

rtpsession: unify nested if clauses

parent 0e6a3141
......@@ -3247,8 +3247,7 @@ session_cleanup (const gchar * key, RTPSource * source, ReportData * data)
GST_LOG ("timeout base interval %" GST_TIME_FORMAT,
GST_TIME_ARGS (binterval));
if (!source->internal) {
if (source->marked_bye) {
if (!source->internal && source->marked_bye) {
/* if we received a BYE from the source, remove the source after some
* time. */
if (data->current_time > source->bye_time &&
......@@ -3258,7 +3257,6 @@ session_cleanup (const gchar * key, RTPSource * source, ReportData * data)
byetimeout = TRUE;
}
}
}
/* sources that were inactive for more than 5 times the deterministic reporting
* interval get timed out. the min timeout is 5 seconds. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment