summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2012-10-30 16:07:16 (GMT)
committerXavi Artigas <xartigas@fluendo.com>2012-10-30 16:07:16 (GMT)
commit06092ab21716e155213cf5fa8f03e32669ff6193 (patch)
tree702e36b2c0cdf76c387320a9383c2dd629dde82e
parent5225d14d9ca146ddc3a0429f234da215eaeab369 (diff)
downloadgst-sdk-tutorials-06092ab21716e155213cf5fa8f03e32669ff6193.tar.gz
gst-sdk-tutorials-06092ab21716e155213cf5fa8f03e32669ff6193.tar.xz
Better approach to is_local_media
-rw-r--r--gst-sdk/tutorials/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java b/gst-sdk/tutorials/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java
index cd6fb26..a850af6 100644
--- a/gst-sdk/tutorials/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java
+++ b/gst-sdk/tutorials/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java
@@ -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
private void setMediaUri() {
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