From: George Kiagiadakis Date: Thu, 26 Dec 2013 15:24:51 +0000 (+0200) Subject: rtpsession: unify nested if clauses X-Git-Tag: 1.3.2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d7840cc4a73c53f10d8fb1979271787019f24f0;p=platform%2Fupstream%2Fgst-plugins-good.git rtpsession: unify nested if clauses --- diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index bd8c8b4..9dc1525 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -3247,16 +3247,14 @@ 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 we received a BYE from the source, remove the source after some - * time. */ - if (data->current_time > source->bye_time && - data->current_time - source->bye_time > sess->stats.bye_timeout) { - GST_DEBUG ("removing BYE source %08x", source->ssrc); - remove = TRUE; - byetimeout = TRUE; - } + 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 && + data->current_time - source->bye_time > sess->stats.bye_timeout) { + GST_DEBUG ("removing BYE source %08x", source->ssrc); + remove = TRUE; + byetimeout = TRUE; } }