summaryrefslogtreecommitdiffstats
path: root/www/firefox/files/patch-content-media-nsAudioStream.cpp
blob: bd0f0d4963dbc36ee7afd2c933d0458f9e9f5d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- content/media/nsAudioStream.cpp~
+++ content/media/nsAudioStream.cpp
@@ -298,7 +298,11 @@ static int PrefChanged(const char* aPref
       gVolumeScale = NS_MAX<double>(0, PR_strtod(utf8.get(), nsnull));
     }
   } else if (strcmp(aPref, PREF_USE_CUBEB) == 0) {
+#if defined(__FreeBSD__) && __FreeBSD_version < 800097
+    bool value = Preferences::GetBool(aPref, false);
+#else
     bool value = Preferences::GetBool(aPref, true);
+#endif
     mozilla::MutexAutoLock lock(*gAudioPrefsLock);
     gUseCubeb = value;
   } else if (strcmp(aPref, PREF_CUBEB_LATENCY) == 0) {
OpenPOWER on IntegriCloud