From a646e3846b2306c8dd192b5c2bac904020572eb2 Mon Sep 17 00:00:00 2001 From: Jaechan Lee Date: Mon, 3 Jul 2017 16:14:14 +0900 Subject: [PATCH] Send trick rate info when playback rate is changed. [Model] SM-Z400F [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] Although player_set_playback_rate() is getting called, there is no effect in case of external subtitle. [Cause & Measure] Cause : Changed trick rate info doesn't send to external subtitle pipeline. Measure : Send the info to external subtitle pipeline. [Checking Method] player_test > call player_set_playback_rate() [Team] MM FRAMEWORK [Developer] JaeChan Lee [Solution company] Samsung [Change Type] Specification change Change-Id: Id63f500cfc5d885895b22e07e887abda879b799f (cherry picked from commit c14f1d490cda026170e6388ca58b4f8d6d079f93) --- src/mm_player_priv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 5f23669..1e8ebe2 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -9939,7 +9939,6 @@ _mmplayer_set_playspeed(MMHandleType hplayer, float rate, bool streaming) pos_msec = player->last_position; } - if (rate >= 0) { start = pos_msec; stop = GST_CLOCK_TIME_NONE; @@ -9947,12 +9946,13 @@ _mmplayer_set_playspeed(MMHandleType hplayer, float rate, bool streaming) start = GST_CLOCK_TIME_NONE; stop = pos_msec; } - if ((!gst_element_seek(player->pipeline->mainbin[MMPLAYER_M_PIPE].gst, - rate, + + if (!__gst_seek(player, player->pipeline->mainbin[MMPLAYER_M_PIPE].gst, + player->playback_rate, GST_FORMAT_TIME, (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), GST_SEEK_TYPE_SET, start, - GST_SEEK_TYPE_SET, stop))) { + GST_SEEK_TYPE_SET, stop)) { LOGE("failed to set speed playback\n"); return MM_ERROR_PLAYER_SEEK; } -- 2.7.4