pos_msec = player->last_position;
}
-
if (rate >= 0) {
start = pos_msec;
stop = GST_CLOCK_TIME_NONE;
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;
}