From a0de82d138b62df27036a620bb605de4f5012ad3 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Fri, 11 Dec 2020 11:47:36 +0200 Subject: [PATCH] [[ Bug 22994 ]] Fix crash when setting the startTime of a video on iOS This patch fixes a crash when setting the startTime of a video on iOS --- docs/notes/bugfix-22994.md | 1 + engine/src/mbliphoneplayer.mm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/notes/bugfix-22994.md diff --git a/docs/notes/bugfix-22994.md b/docs/notes/bugfix-22994.md new file mode 100644 index 00000000000..a92fc25b18d --- /dev/null +++ b/docs/notes/bugfix-22994.md @@ -0,0 +1 @@ +# Fix crash when setting the startTime of a video on iOS diff --git a/engine/src/mbliphoneplayer.mm b/engine/src/mbliphoneplayer.mm index fd682af0ef2..afcea59cf57 100644 --- a/engine/src/mbliphoneplayer.mm +++ b/engine/src/mbliphoneplayer.mm @@ -506,7 +506,7 @@ static void content_to_url(MCStringRef p_file, NSURL*& r_url) m_start_time = CMTimeMake(p_time, 1000); if (m_player != nil) - m_player.currentItem.reversePlaybackEndTime = m_start_time; + SetCurrentTime(ctxt, p_time); } void MCiOSPlayerControl::GetStartTime(MCExecContext& ctxt, integer_t& r_time)