mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
qtmux: Only write timecode trak for video
Recent changes in ccextractor were attaching timecode meta to the closed caption track. We shouldn't write timecode information for the closed caption trak.
This commit is contained in:
parent
b6e6f1ae73
commit
92272b5e5c
1 changed files with 5 additions and 1 deletions
|
@ -2800,7 +2800,8 @@ gst_qt_mux_prefill_samples (GstQTMux * qtmux)
|
||||||
gst_collect_pads_peek (qtmux->collect, (GstCollectData *) qpad);
|
gst_collect_pads_peek (qtmux->collect, (GstCollectData *) qpad);
|
||||||
GstVideoTimeCodeMeta *tc_meta;
|
GstVideoTimeCodeMeta *tc_meta;
|
||||||
|
|
||||||
if (buffer && (tc_meta = gst_buffer_get_video_time_code_meta (buffer))) {
|
if (buffer && (tc_meta = gst_buffer_get_video_time_code_meta (buffer))
|
||||||
|
&& qpad->trak->is_video) {
|
||||||
GstVideoTimeCode *tc = &tc_meta->tc;
|
GstVideoTimeCode *tc = &tc_meta->tc;
|
||||||
|
|
||||||
qpad->tc_trak = atom_trak_new (qtmux->context);
|
qpad->tc_trak = atom_trak_new (qtmux->context);
|
||||||
|
@ -4344,6 +4345,9 @@ gst_qt_mux_check_and_update_timecode (GstQTMux * qtmux, GstQTPad * pad,
|
||||||
guint32 frames_since_daily_jam;
|
guint32 frames_since_daily_jam;
|
||||||
GstQTMuxClass *qtmux_klass = (GstQTMuxClass *) (G_OBJECT_GET_CLASS (qtmux));
|
GstQTMuxClass *qtmux_klass = (GstQTMuxClass *) (G_OBJECT_GET_CLASS (qtmux));
|
||||||
|
|
||||||
|
if (!pad->trak->is_video)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if (qtmux_klass->format != GST_QT_MUX_FORMAT_QT)
|
if (qtmux_klass->format != GST_QT_MUX_FORMAT_QT)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue