Add support for cut-out files.

This commit is contained in:
Vreixo Formoso
2008-03-08 21:45:19 +01:00
parent bad03a9a2b
commit d455f9b540
6 changed files with 331 additions and 9 deletions

View File

@ -52,12 +52,13 @@ int default_create_file(IsoNodeBuilder *builder, IsoImage *image,
if (ret < 0) {
return ret;
}
/* take a ref to the src, as stream has taken our ref */
iso_file_source_ref(src);
name = iso_file_source_get_name(src);
ret = iso_node_new_file(name, stream, &node);
if (ret < 0) {
/* the stream has taken our ref to src, so we need to add one */
iso_file_source_ref(src);
iso_stream_unref(stream);
free(name);
return ret;