mirror of
https://github.com/fmang/opustags.git
synced 2025-01-29 03:15:05 +01:00
short-circuit when in read-only mode
This commit is contained in:
parent
0dd086495d
commit
4f05038d7b
@ -365,7 +365,7 @@ int main(int argc, char **argv){
|
||||
free_tags(&tags);
|
||||
if(raw_tags)
|
||||
free(raw_tags);
|
||||
if(error)
|
||||
if(error || !out)
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
@ -389,6 +389,8 @@ int main(int argc, char **argv){
|
||||
else if(ogg_stream_check(&enc) != 0)
|
||||
error = "ogg_stream_check: internal error (encoder)";
|
||||
}
|
||||
else if(packet_count >= 2) // Read-only mode
|
||||
break;
|
||||
}
|
||||
if(packet_count >= 0){
|
||||
ogg_stream_clear(&os);
|
||||
|
Loading…
x
Reference in New Issue
Block a user