src/audio/SDL_audio.c
changeset 7904 915b9b6c9fa0
parent 7719 31b5f9ff36ca
child 7981 6d538bc1b395
     1.1 --- a/src/audio/SDL_audio.c	Sun Nov 03 11:00:28 2013 -0800
     1.2 +++ b/src/audio/SDL_audio.c	Sun Nov 03 11:13:06 2013 -0800
     1.3 @@ -722,10 +722,16 @@
     1.4      }
     1.5  
     1.6      if ((iscapture) && (current_audio.impl.OnlyHasDefaultInputDevice)) {
     1.7 +        if (index > 0) {
     1.8 +            goto no_such_device;
     1.9 +        }
    1.10          return DEFAULT_INPUT_DEVNAME;
    1.11      }
    1.12  
    1.13      if ((!iscapture) && (current_audio.impl.OnlyHasDefaultOutputDevice)) {
    1.14 +        if (index > 0) {
    1.15 +            goto no_such_device;
    1.16 +        }
    1.17          return DEFAULT_OUTPUT_DEVNAME;
    1.18      }
    1.19