[haiku-commits] r33679 - haiku/trunk/src/add-ons/media/media-add-ons/mixer

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 20 Oct 2009 16:14:00 +0200 (CEST)

Author: stippi
Date: 2009-10-20 16:14:00 +0200 (Tue, 20 Oct 2009)
New Revision: 33679
Changeset: http://dev.haiku-os.org/changeset/33679/haiku

Modified:
   haiku/trunk/src/add-ons/media/media-add-ons/mixer/AudioMixer.cpp
Log:
Do not crash when a node tries to change the format during runtime, as long as
this is actually not implemented.


Modified: haiku/trunk/src/add-ons/media/media-add-ons/mixer/AudioMixer.cpp
===================================================================
--- haiku/trunk/src/add-ons/media/media-add-ons/mixer/AudioMixer.cpp    
2009-10-20 14:12:12 UTC (rev 33678)
+++ haiku/trunk/src/add-ons/media/media-add-ons/mixer/AudioMixer.cpp    
2009-10-20 14:14:00 UTC (rev 33679)
@@ -475,10 +475,13 @@
 
        if (fCore->Settings()->RefuseInputFormatChange()) {
                TRACE("AudioMixer::FormatChanged: input format change 
refused\n");
-               return B_ERROR;
+               return B_NOT_ALLOWED;
        }
 
-       // XXX we should not apply the format change at this point
+       // TODO: We should not apply the format change at this point
+       // TODO: At the moment, this is not implemented at the moment and will 
just
+       // crash the media_server.
+       return B_NOT_SUPPORTED;
 
        // tell core about format change
        fCore->Lock();


Other related posts:

  • » [haiku-commits] r33679 - haiku/trunk/src/add-ons/media/media-add-ons/mixer - superstippi