isomp4: report failures to caller
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 15:25:44 +0000 (16:25 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Apr 2014 16:44:50 +0000 (17:44 +0100)
Coverity 206027

gst/isomp4/atoms.c

index 4b65e52..6f99a6d 100644 (file)
@@ -2143,9 +2143,11 @@ atom_dref_copy_data (AtomDREF * dref, guint8 ** buffer, guint64 * size,
     Atom *atom = (Atom *) walker->data;
 
     if (atom->type == FOURCC_url_) {
-      atom_url_copy_data ((AtomURL *) atom, buffer, size, offset);
+      if (!atom_url_copy_data ((AtomURL *) atom, buffer, size, offset))
+        return 0;
     } else if (atom->type == FOURCC_alis) {
-      atom_full_copy_data ((AtomFull *) atom, buffer, size, offset);
+      if (!atom_full_copy_data ((AtomFull *) atom, buffer, size, offset))
+        return 0;
     } else {
       g_error ("Unsupported atom used inside dref atom");
     }