sys/sunaudio/gstsunaudiomixerctrl.c: Set the mixer fd before calling ioctl() on it...
[platform/upstream/gstreamer.git] / sys / sunaudio / gstsunaudiomixerctrl.c
index 15fe114..5897820 100644 (file)
@@ -62,10 +62,11 @@ gst_sunaudiomixer_ctrl_open (GstSunAudioMixerCtrl * mixer)
 
     return FALSE;
   }
+  mixer->mixer_fd = fd;
+
   /* Try to set the multiple open flag if we can, but ignore errors */
   ioctl (mixer->mixer_fd, AUDIO_MIXER_MULTIPLE_OPEN);
 
-  mixer->mixer_fd = fd;
   return TRUE;
 }