player: remove unnecessary code 17/44717/1
authorHyunil Park <hyunil46.park@samsung.com>
Mon, 27 Jul 2015 05:20:09 +0000 (14:20 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Mon, 27 Jul 2015 05:20:09 +0000 (14:20 +0900)
Change-Id: I4092ccdac2fece208dd8e22036b84f1e39f54966
Signed-off-by: Hyunil Park <hyunil46.park@samsung.com>
src/mm_player_priv.c

index 901053ea0744e12897daaf80f14ab918ef228e06..3b2de60859457254d0ebb04d4dc7068adf8c315d 100644 (file)
@@ -5840,7 +5840,6 @@ __mmplayer_video_stream_probe (GstPad *pad, GstPadProbeInfo *info, gpointer user
                                        thandle.ptr, mapinfo.data);
 
                tbm_bo_unmap(stream.bo[0]);
-
        }
 
        if (player->video_stream_cb) {
@@ -6606,12 +6605,9 @@ __mmplayer_subtitle_adjust_position_probe (GstPad *pad, GstPadProbeInfo *info, g
        GstClockTime cur_timestamp = 0;
        gint64 adjusted_timestamp = 0;
        GstBuffer *buffer = gst_pad_probe_info_get_buffer(info);
-       GstMapInfo probe_info = GST_MAP_INFO_INIT;
 
        return_val_if_fail ( player, FALSE );
 
-       gst_buffer_map(buffer, &probe_info, GST_MAP_READ);
-
        if ( player->set_mode.subtitle_off )
        {
                debug_log("subtitle is OFF.\n" );
@@ -6627,8 +6623,6 @@ __mmplayer_subtitle_adjust_position_probe (GstPad *pad, GstPadProbeInfo *info, g
        cur_timestamp = GST_BUFFER_TIMESTAMP(buffer);
        adjusted_timestamp = (gint64) cur_timestamp + ((gint64) player->adjust_subtitle_pos * G_GINT64_CONSTANT(1000000));
 
-       gst_buffer_unmap(buffer, &probe_info);
-
        if ( adjusted_timestamp < 0)
        {
                debug_log("adjusted_timestamp under zero");