Fix coverity issues 40/156640/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20171019.235213 submit/tizen_4.0/20171019.091558 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 19 Oct 2017 08:18:56 +0000 (17:18 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 19 Oct 2017 08:18:56 +0000 (17:18 +0900)
[Version] 0.1.25
[Profile] Mobile, Wearable, TV
[Issue Type] Fix coverity issues

Change-Id: I732f1610e3c9a906d1c952770606d61686f11cef

src/port_gst/mediademuxer_port_gst.c

index c0f1a3e..fb745d1 100755 (executable)
@@ -706,13 +706,13 @@ static void __gst_on_pad_added(GstElement *element, GstPad *pad, gpointer data)
                return;
        }
 
-       while (tmp->next)
+       while (tmp->next) {
                tmp = tmp->next;
-
-       if (!tmp) {
-               MD_I("trak is NULL\n");
-               MEDIADEMUXER_FLEAVE();
-               return;
+               if (!tmp) {
+                       MD_I("trak is NULL\n");
+                       MEDIADEMUXER_FLEAVE();
+                       return;
+               }
        }
 
        if (!tmp->caps_string) {