Fix Android startup movies not always playing

#jira UE-49679
#ue4
#android
#rb Peter.Sauerbrei
#fyi Jack.Porter
#lockdown Cristina.Riveron

[CL 3645484 by Chris Babcock in 4.18 branch]
This commit is contained in:
Chris Babcock
2017-09-15 14:01:13 -04:00
parent 358dbad9d1
commit 3829694bbe

View File

@@ -418,6 +418,34 @@ public class MediaPlayer14
return -1;
}
public void prepare() throws IOException, IllegalStateException
{
synchronized(this)
{
Completed = false;
try
{
super.prepare();
}
catch (IOException e)
{
GameActivity.Log.debug("MediaPlayer14: Prepare IOException: " + e.toString());
throw e;
}
catch (IllegalStateException e)
{
GameActivity.Log.debug("MediaPlayer14: Prepare IllegalStateExecption: " + e.toString());
throw e;
}
catch (Exception e)
{
GameActivity.Log.debug("MediaPlayer14: Prepare Exception: " + e.toString());
throw e;
}
Prepared = true;
}
}
public void start()
{
synchronized(this)