Bug 1189866 - revert code that accidentally got into bug 1187817 patch 5. r=me.
authorJW Wang <jwwang@mozilla.com>
Sat, 01 Aug 2015 13:58:39 +0800
changeset 287434 b2db9b75841ac542d9778413aa452fc2d452555e
parent 287433 de87db481f88d394f60625913d47e5fc861b7d63
child 287435 768312f4d2810ab0413ff0a27cf1dc93c3079ff7
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1189866, 1187817
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1189866 - revert code that accidentally got into bug 1187817 patch 5. r=me.
media/libcubeb/src/cubeb_opensl.c
--- a/media/libcubeb/src/cubeb_opensl.c
+++ b/media/libcubeb/src/cubeb_opensl.c
@@ -666,20 +666,18 @@ opensl_stream_init(cubeb * ctx, cubeb_st
 
   *stream = stm;
   return CUBEB_OK;
 }
 
 static void
 opensl_stream_destroy(cubeb_stream * stm)
 {
-  if (stm->playerObj) {
-    (*stm->bufq)->Clear(stm->bufq);
+  if (stm->playerObj)
     (*stm->playerObj)->Destroy(stm->playerObj);
-  }
   int i;
   for (i = 0; i < NBUFS; i++) {
     free(stm->queuebuf[i]);
   }
   pthread_mutex_destroy(&stm->mutex);
 
   cubeb_resampler_destroy(stm->resampler);