From ac7f4cba67e81047d118f6bae1d23e143f6bd6ab Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 25 Jun 2010 20:19:20 -0300 Subject: [PATCH] qtmux: Write uint tags that don't have a complement Write uint tags that have complements (e.g. track-number/ track-count) even when we only have one of them available and set the other one to 0. Fixes #622484 --- gst/quicktime/gstqtmux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/quicktime/gstqtmux.c b/gst/quicktime/gstqtmux.c index ce5a433bdb..6d2b30f193 100644 --- a/gst/quicktime/gstqtmux.c +++ b/gst/quicktime/gstqtmux.c @@ -428,13 +428,13 @@ gst_qt_mux_add_mp4_tag (GstQTMux * qtmux, const GstTagList * list, } case G_TYPE_UINT: { - guint value; + guint value = 0; if (tag2) { /* paired unsigned integers */ - guint count; + guint count = 0; - if (!gst_tag_list_get_uint (list, tag, &value) || - !gst_tag_list_get_uint (list, tag2, &count)) + if (!(gst_tag_list_get_uint (list, tag, &value) || + gst_tag_list_get_uint (list, tag2, &count))) break; GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u", GST_FOURCC_ARGS (fourcc), value, count);