mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 02:40:26 +00:00
small fixes
This commit is contained in:
@@ -305,6 +305,7 @@ settings_init(void *state, char *fmt)
|
||||
s->mode = atoi(tmp);
|
||||
|
||||
tmp = strtok(NULL, ":");
|
||||
s->c_info = 0;
|
||||
if(!tmp) {
|
||||
int i;
|
||||
for(i=0; codec_info[i].name != NULL; i++) {
|
||||
@@ -321,6 +322,10 @@ settings_init(void *state, char *fmt)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(s->c_info == 0) {
|
||||
fprintf(stderr, "Wrong config. Unknown color space %s\n", tmp);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user