qtmux: do not allocate atom of trak when mux reset
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 27 Dec 2017 05:26:29 +0000 (14:26 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 16 Jan 2018 10:03:08 +0000 (19:03 +0900)
If qtmux reused without finalization(only the state is changed from PAUSE to READY), qtmux makes dummy trak.

Change-Id: Ic3e9510425d5ab98d8f084aa75ffe6199b5b528c

gst/isomp4/gstqtmux.c

index d2b4529..1c00342 100644 (file)
@@ -844,6 +844,7 @@ gst_qt_mux_reset (GstQTMux * qtmux, gboolean alloc)
 
   if (alloc) {
     qtmux->moov = atom_moov_new (qtmux->context);
+#ifndef TIZEN_FEATURE_GST_MUX_ENHANCEMENT
     /* ensure all is as nice and fresh as request_new_pad would provide it */
     for (walk = qtmux->sinkpads; walk; walk = g_slist_next (walk)) {
       GstQTPad *qtpad = (GstQTPad *) walk->data;
@@ -851,6 +852,7 @@ gst_qt_mux_reset (GstQTMux * qtmux, gboolean alloc)
       qtpad->trak = atom_trak_new (qtmux->context);
       atom_moov_add_trak (qtmux->moov, qtpad->trak);
     }
+#endif
   }
 
   qtmux->current_pad = NULL;