grab: init gc->audio_format_num to -1
authorAndre <maan@p133.(none)>
Sat, 6 May 2006 14:09:16 +0000 (16:09 +0200)
committerAndre <maan@p133.(none)>
Sat, 6 May 2006 14:09:16 +0000 (16:09 +0200)
Previously it was 0, which happens to be the mp3 audio format number.
Therefore, grab without args only grabbed mp3 files. This patch makes
it grab any audio format.

grab_client.c

index b58c456..026211f 100644 (file)
@@ -99,6 +99,7 @@ static int check_gc_args(struct grab_client *gc)
        if (!mv[i])
                return -E_GC_SYNTAX;
        gc->mode = i;
+       gc->audio_format_num = -1;
        if (conf->audio_format_given) {
                gc->audio_format_num = get_audio_format_num(conf->audio_format_arg);
                if (gc->audio_format_num < 0)