Use Uri.toSafeString() in MediaPlayer[2].java.
Bug: 123669012
Test: play HLS/RTSP streaming
atest CtsNetTestCases:android.net.cts.UriTest
Signed-off-by: Eunyoung Moon <eunyoung.moon@lge.com>
Change-Id: I3695b0a6f28df3dfff981de2dcd6417d227965ae
This commit is contained in:
committed by
Dongwon Kang
parent
7c0532ae76
commit
db21cbae34
@@ -962,7 +962,7 @@ public class MediaPlayer2 implements AutoCloseable
|
||||
return;
|
||||
}
|
||||
} catch (NullPointerException | SecurityException | IOException ex) {
|
||||
Log.w(TAG, "Couldn't open " + uri + ": " + ex);
|
||||
Log.w(TAG, "Couldn't open " + uri == null ? "null uri" : uri.toSafeString(), ex);
|
||||
// Fallback to media server
|
||||
}
|
||||
handleDataSource(isCurrent, srcId, uri.toString(), headers, cookies, startPos, endPos);
|
||||
|
||||
@@ -1103,7 +1103,7 @@ public class MediaPlayer extends PlayerBase
|
||||
setDataSource(afd);
|
||||
return true;
|
||||
} catch (NullPointerException | SecurityException | IOException ex) {
|
||||
Log.w(TAG, "Couldn't open " + uri + ": " + ex);
|
||||
Log.w(TAG, "Couldn't open " + uri == null ? "null uri" : uri.toSafeString(), ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user