[0.6.44] fix svace issue 11/128211/1 accepted/tizen/unified/20170510.012858 submit/tizen/20170508.044749
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 8 May 2017 04:49:00 +0000 (13:49 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 8 May 2017 04:49:00 +0000 (13:49 +0900)
Change-Id: I739aa086c565fc23f8589d1fb891d4adf3d01591

src/mm_player_priv.c

index 05bf12d..2ffe025 100644 (file)
@@ -11967,7 +11967,7 @@ __mmplayer_gst_decode_drained(GstElement *bin, gpointer data)
                switch (gst_iterator_next(iter, &item)) {
                case GST_ITERATOR_OK:
                        pad = g_value_get_object(&item);
-                       if (!GST_PAD_IS_EOS(pad)) {
+                       if (pad && !GST_PAD_IS_EOS(pad)) {
                                LOGW("[%s:%s] not received EOS yet.", GST_DEBUG_PAD_NAME(pad));
                                is_all_drained = FALSE;
                                break;