From 3bb2b1e3c8b7becd68792a4740c4a5916a1462eb Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Fri, 31 Jan 2020 10:46:14 +0900 Subject: [PATCH] Fix SVACE issue (UNREACHABLE_CODE) [Version] 0.1.34 [Issue Type] Fix svace issue Change-Id: I41b9314a6f01bd15305fe5f2285ce20bc620d160 --- packaging/capi-mediademuxer.spec | 2 +- src/port_gst/mediademuxer_port_gst.c | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packaging/capi-mediademuxer.spec b/packaging/capi-mediademuxer.spec index 35e9367..3846087 100644 --- a/packaging/capi-mediademuxer.spec +++ b/packaging/capi-mediademuxer.spec @@ -1,6 +1,6 @@ Name: capi-mediademuxer Summary: A Media Demuxer library in Tizen Native API -Version: 0.1.33 +Version: 0.1.34 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/port_gst/mediademuxer_port_gst.c b/src/port_gst/mediademuxer_port_gst.c index 764e6b7..afc45c4 100644 --- a/src/port_gst/mediademuxer_port_gst.c +++ b/src/port_gst/mediademuxer_port_gst.c @@ -707,14 +707,8 @@ 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->caps_string) { MD_I("trak caps_string is NULL\n"); -- 2.7.4