[subtitle] subtitle_cb is called after EOS. 24/100224/1
authorJaechan Lee <jaechan3.lee@samsung.com>
Fri, 25 Nov 2016 09:49:47 +0000 (18:49 +0900)
committerJaechan Lee <jaechan3.lee@samsung.com>
Fri, 25 Nov 2016 09:50:32 +0000 (18:50 +0900)
[Model] Tizen3.0 Z2
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Monitoring test
[Occurrence Version] Z200FDDE0APK7

[Problem] Despite the video is played until EOS, subtitle can be updated.
[Cause & Measure] Cause : Although, the drop-probability property of identity plugin is changed as "0.0",
in this case, the last buffer of fakesink is remained.
So, subtitle_cb will be called after EOS just once.
Measure : the update of subtitle is prohibited after EOS.
[Checking Method] player_test > play video files with subtitle.

[Team] MMFW
[Developer] Jaechan Lee
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ia0c804ccd7ce6d37b995a5687830ad83a8806c3a

src/mm_player_priv.c

index 77c00f2768b8165089c517817e74fd3203c1a0ce..34180c2fd402777f19e59f33517dd6e1e53a39c1 100644 (file)
@@ -5724,6 +5724,12 @@ __mmplayer_update_subtitle(GstElement* object, GstBuffer *buffer, GstPad *pad, g
        MMPLAYER_RETURN_VAL_IF_FAIL(player, FALSE);
        MMPLAYER_RETURN_VAL_IF_FAIL(buffer, FALSE);
 
+       if (player->is_subtitle_force_drop)
+       {
+               LOGW("subtitle is dropped forcedly.");
+               return ret;
+       }
+
        gst_buffer_map(buffer, &mapinfo, GST_MAP_READ);
        text = mapinfo.data;
        text_size = mapinfo.size;