Better approach to is_local_media

This commit is contained in:
Xavi Artigas 2012-10-30 17:07:16 +01:00
parent 5225d14d9c
commit 06092ab217

View file

@ -131,7 +131,7 @@ public class Tutorial4 extends Activity implements SurfaceHolder.Callback, OnSee
// Set the URI to play, and record whether it is a local or remote file // Set the URI to play, and record whether it is a local or remote file
private void setMediaUri() { private void setMediaUri() {
nativeSetUri (mediaUri); nativeSetUri (mediaUri);
if (mediaUri.startsWith("file://")) is_local_media = true; is_local_media = mediaUri.startsWith("file://");
} }
// Called from native code. Native code calls this once it has created its pipeline and // Called from native code. Native code calls this once it has created its pipeline and