qtmux: avoid shortcut evaluation when adding paired mp4 tag
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 31 Oct 2011 15:18:32 +0000 (16:18 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 31 Oct 2011 15:25:59 +0000 (16:25 +0100)
Fixes (part of) #638711.

gst/isomp4/gstqtmux.c

index 769578d..3fa152b 100644 (file)
@@ -572,9 +572,11 @@ gst_qt_mux_add_mp4_tag (GstQTMux * qtmux, const GstTagList * list,
       if (tag2) {
         /* paired unsigned integers */
         guint count = 0;
+        gboolean got_tag;
 
-        if (!(gst_tag_list_get_uint (list, tag, &value) ||
-                gst_tag_list_get_uint (list, tag2, &count)))
+        got_tag = gst_tag_list_get_uint (list, tag, &value);
+        got_tag = gst_tag_list_get_uint (list, tag2, &count) || got_tag;
+        if (!got_tag)
           break;
         GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u",
             GST_FOURCC_ARGS (fourcc), value, count);