projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308e0ef
)
grab: init gc->audio_format_num to -1
author
Andre
<maan@p133.(none)>
Sat, 6 May 2006 14:09:16 +0000
(16:09 +0200)
committer
Andre
<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
patch
|
blob
|
history
diff --git
a/grab_client.c
b/grab_client.c
index b58c456e89c3545e590439a96afdb8d2ad40a071..026211fdcb9fca9c6e4e99b635e5de43c8592fb5 100644
(file)
--- a/
grab_client.c
+++ b/
grab_client.c
@@
-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)