Aborting image generation in case of ISO_OVWRT_FIFO_TOO_SMALL.
This commit is contained in:
parent
45bee0a849
commit
2cc387fcce
@ -2153,6 +2153,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
|
|||||||
/* The ring buffer must be large enough to take opts->overwrite
|
/* The ring buffer must be large enough to take opts->overwrite
|
||||||
*/
|
*/
|
||||||
ret = ISO_OVWRT_FIFO_TOO_SMALL;
|
ret = ISO_OVWRT_FIFO_TOO_SMALL;
|
||||||
|
goto target_cleanup;
|
||||||
}
|
}
|
||||||
ret = iso_ring_buffer_new(opts->fifo_size, &target->buffer);
|
ret = iso_ring_buffer_new(opts->fifo_size, &target->buffer);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user