qtmux: Initialize caption track language code to 0 instead of "und"
authorSebastian Dröge <sebastian@centricular.com>
Thu, 6 Sep 2018 17:10:30 +0000 (20:10 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 18 Sep 2018 14:32:46 +0000 (17:32 +0300)
Without this, Final Cut considers it "non-standard" and 0 (english) is a
good default for closed captions.

https://bugzilla.gnome.org/show_bug.cgi?id=797111

gst/isomp4/gstqtmux.c

index 97591de..9297b43 100644 (file)
@@ -6073,6 +6073,11 @@ gst_qt_mux_caption_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
       (SampleTableEntry *) atom_trak_set_caption_type (qtpad->trak,
       qtmux->context, timescale, fourcc_entry);
 
+  /* Initialize caption track language code to 0 unless something else is
+   * specified. Without this, Final Cut considers it "non-standard"
+   */
+  qtpad->trak->mdia.mdhd.language_code = 0;
+
   gst_object_unref (qtmux);
   return TRUE;