player/subtitile: don't need to copy mem, app will use it after copying. 32/48632/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Oct 2015 07:36:07 +0000 (16:36 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Oct 2015 07:36:11 +0000 (16:36 +0900)
Change-Id: I35a23740431879f4a9168d1765644429e87aa8e2

src/server/mm_player_priv.c

index ef813ba..2919d32 100644 (file)
@@ -6259,11 +6259,10 @@ __mmplayer_update_subtitle( GstElement* object, GstBuffer *buffer, GstPad *pad,
        MMPLAYER_RETURN_VAL_IF_FAIL ( buffer, FALSE );
 
        gst_buffer_map(buffer, &mapinfo, GST_MAP_READ);
-       text = g_memdup(mapinfo.data, mapinfo.size);
+       text = mapinfo.data;
        text_size = mapinfo.size;
        duration = GST_BUFFER_DURATION(buffer);
 
-
        if ( player->set_mode.subtitle_off )
        {
                LOGD("subtitle is OFF.\n" );