qtmux: Use xmp on mp4mux and gppmux too
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 12 Mar 2010 13:53:36 +0000 (10:53 -0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:17 +0000 (20:32 +0100)
Do not restrict xmp to qtmux, but use it too
on mp4mux and gppmux

gst/quicktime/gstqtmux.c

index 96f97ab..6035c61 100644 (file)
@@ -882,8 +882,11 @@ gst_qt_mux_add_xmp_tags (GstQTMux * qtmux, const GstTagList * list)
 {
   GstQTMuxClass *qtmux_klass = (GstQTMuxClass *) (G_OBJECT_GET_CLASS (qtmux));
 
-  if (qtmux_klass->format != GST_QT_MUX_FORMAT_QT)
-    return;                     /* adobe spec only specs for qt */
+  /* adobe specs only say 'quicktime', but I guess we can extrapolate to
+   * mp4 and gpp. Keep mj2 out for now as we don't add any tags for it yet.
+   * If you have further info about xmp on these formats, please share */
+  if (qtmux_klass->format == GST_QT_MUX_FORMAT_MJ2)
+    return;
 
   GST_DEBUG_OBJECT (qtmux, "Adding xmp tags");