Bug 685258 - Pulse audio backend does not check provided playback and crashes r=derf
☠☠ backed out by f4e1e9d38bc0 ☠ ☠
authorOleg Romashin <romaxa@gmail.com>
Thu, 08 Sep 2011 12:51:25 +0200
changeset 76716 8e9aea2febedf77752562fd7ab21ddccfae022ea
parent 76712 f08b80318718f3070348da0a6f211a30ceadf11c
child 76717 604544452285ebe690bf00ce554c507de16db608
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersderf
bugs685258
milestone9.0a1
Bug 685258 - Pulse audio backend does not check provided playback and crashes r=derf
content/media/nsAudioStream.cpp
--- a/content/media/nsAudioStream.cpp
+++ b/content/media/nsAudioStream.cpp
@@ -408,17 +408,17 @@ NS_IMPL_THREADSAFE_ISUPPORTS0(nsAudioStr
 
 nsresult nsAudioStreamLocal::Init(PRInt32 aNumChannels, PRInt32 aRate, SampleFormat aFormat)
 {
   mRate = aRate;
   mChannels = aNumChannels;
   mFormat = aFormat;
 
   if (sa_stream_create_pcm(reinterpret_cast<sa_stream_t**>(&mAudioHandle),
-                           NULL, 
+                           "Mozilla", 
                            SA_MODE_WRONLY, 
                            SA_PCM_FORMAT_S16_NE,
                            aRate,
                            aNumChannels) != SA_SUCCESS) {
     mAudioHandle = nsnull;
     mInError = PR_TRUE;
     PR_LOG(gAudioStreamLog, PR_LOG_ERROR, ("nsAudioStreamLocal: sa_stream_create_pcm error"));
     return NS_ERROR_FAILURE;