fix prevent 31/42931/1
authorHyunil Park <hyunil46.park@samsung.com>
Mon, 6 Jul 2015 06:23:39 +0000 (15:23 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Mon, 6 Jul 2015 06:23:39 +0000 (15:23 +0900)
Change-Id: Ife154d3a71616dada55798f9fc493498a90e209b
Signed-off-by: Hyunil Park <hyunil46.park@samsung.com>
src/mm_player_priv.c

index f3c9b9c..22c34f8 100755 (executable)
@@ -6243,8 +6243,6 @@ static int __mmplayer_gst_create_text_pipeline(mm_player_t* player)
 {
        MMPlayerGstElement *textbin = NULL;
        GList *element_bucket = NULL;
-       GstPad *pad = NULL;
-       GstPad *ghostpad = NULL;
        gint i = 0;
 
        MMPLAYER_FENTER();
@@ -6328,7 +6326,6 @@ static int __mmplayer_gst_create_text_pipeline(mm_player_t* player)
                                break;
                }
        }
-       gst_object_unref(pad);
 
        MMPLAYER_FLEAVE();
 
@@ -6338,12 +6335,6 @@ ERROR:
 
        debug_log("ERROR : releasing textbin\n");
 
-       if ( pad )
-               gst_object_unref(GST_OBJECT(pad));
-
-       if ( ghostpad )
-               gst_object_unref(GST_OBJECT(ghostpad));
-
        g_list_free( element_bucket );
 
        /* release element which are not added to bin */