Bug 1082550 - Fix media decoding on Android
authorJames Willcox <snorp@snorp.net>
Fri, 17 Oct 2014 10:13:00 -0500
changeset 211049 5951468e1e15214726a7b86f3f7cabaac31ef47b
parent 211048 4e5ec40e63f6b94ad16e7459e10f412349247917
child 211050 788ff9d05938d01c66c5fedfa450699a531408b9
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs1082550
milestone36.0a1
Bug 1082550 - Fix media decoding on Android
content/media/android/AndroidMediaResourceServer.cpp
--- a/content/media/android/AndroidMediaResourceServer.cpp
+++ b/content/media/android/AndroidMediaResourceServer.cpp
@@ -445,17 +445,17 @@ AndroidMediaResourceServer::AppendRandom
   aUrl += salt;
   return NS_OK;
 }
 
 nsresult
 AndroidMediaResourceServer::AddResource(mozilla::MediaResource* aResource, nsCString& aUrl)
 {
   nsCString url = GetURLPrefix();
-  nsresult rv = GenerateRandomPathName(url, 16);
+  nsresult rv = AppendRandomPath(url);
   if (NS_FAILED (rv)) return rv;
 
   {
     MutexAutoLock lock(mMutex);
 
     // Adding a resource URL that already exists is considered an error.
     if (mResources.find(aUrl) != mResources.end()) return NS_ERROR_FAILURE;
     mResources[url] = aResource;