rtpsession: unify nested if clauses
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 26 Dec 2013 15:24:51 +0000 (17:24 +0200)
committerWim Taymans <wtaymans@redhat.com>
Wed, 14 May 2014 14:01:50 +0000 (16:01 +0200)
gst/rtpmanager/rtpsession.c

index bd8c8b4..9dc1525 100644 (file)
@@ -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;
     }
   }