diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-02-08 11:51:52 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-02-08 11:51:52 -0300 |
commit | bcbdd12fb39d07b567580a87aa3b3254a928cf11 (patch) | |
tree | 2b56fd69e7288db06235a76dc990133e4a1afe66 | |
parent | ad7eff41a8f5243df1bd9ff84a121e5e6f90dcab (diff) |
qtmux: atomsrecovery: Fix compilation problem
Fixes a compilation error due to unused function result.
-rw-r--r-- | gst/qtmux/atomsrecovery.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gst/qtmux/atomsrecovery.c b/gst/qtmux/atomsrecovery.c index 9e1ba6798..907683e43 100644 --- a/gst/qtmux/atomsrecovery.c +++ b/gst/qtmux/atomsrecovery.c @@ -1070,8 +1070,16 @@ moov_recov_write_file (MoovRecovFile * moovrf, MdatRecovFile * mdatrf, data = g_malloc (4096); while (!feof (mdatrf->file)) { - gint read = fread (data, 1, 4096, mdatrf->file); - fwrite (data, 1, read, outf); + gint read, write; + + read = fread (data, 1, 4096, mdatrf->file); + write = fwrite (data, 1, read, outf); + + if (write != read) { + g_set_error (err, ATOMS_RECOV_QUARK, ATOMS_RECOV_ERR_FILE, + "Failed to copy data to output file: %s", g_strerror (errno)); + goto fail; + } } g_free (data); |