Aborting image generation in case of ISO_OVWRT_FIFO_TOO_SMALL.

This commit is contained in:
Thomas Schmitt 2012-06-10 12:48:22 +02:00
parent 45bee0a849
commit 2cc387fcce

View File

@ -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) {