fix prevent defects
authorYounghwan Ahn <younghwan_.an@samsung.com>
Tue, 8 Jan 2013 12:25:35 +0000 (21:25 +0900)
committerYounghwan Ahn <younghwan_.an@samsung.com>
Tue, 8 Jan 2013 12:25:35 +0000 (21:25 +0900)
Change-Id: Iafb18e9f6a472f72b60f56e86593da85541404d2

src/mm_player_priv.c
src/mm_player_utils.c

index e7d17c5..bcae32d 100755 (executable)
@@ -1943,7 +1943,7 @@ __mmplayer_gst_rtp_no_more_pads (GstElement *element,  gpointer data)  // @
                debug_log("it seems pad caps is directely used for autoplugging. removing fakesink now\n");
 
                if ( ! __mmplayer_gst_remove_fakesink( player,
-                       &player->pipeline->mainbin[MMPLAYER_M_SRC_FAKESINK]) );
+                       &player->pipeline->mainbin[MMPLAYER_M_SRC_FAKESINK]) )
                {
                        /* NOTE : __mmplayer_pipeline_complete() can be called several time. because
                         * signaling mechanism ( pad-added, no-more-pad, new-decoded-pad ) from various
index fd2c18e..261d7d4 100755 (executable)
@@ -81,7 +81,10 @@ bool util_remove_file_backup(const char *backup_path)
 
        int res = access(backup_path, R_OK);
        if (!res)
-               remove(backup_path);
+       {
+               if (remove(backup_path) == -1)
+                       return FALSE;
+       }
 
        return TRUE;
 }