From 3a38682cf0de756472d596ee308c9b62caf5e480 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 10 Dec 2015 15:11:07 +0000 Subject: [PATCH] isomp4: replace variable only used once Replace has_shift variable with value since it is only use once. --- gst/isomp4/gstqtmux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 2529dc72b7..83b7cb7edc 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -2462,10 +2462,8 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux) guint32 lateness = 0; guint32 duration = qtpad->trak->tkhd.duration; gboolean has_gap; - gboolean has_shift; has_gap = (qtpad->first_ts > (qtmux->first_ts + qtpad->dts_adjustment)); - has_shift = (qtpad->dts_adjustment > 0); if (has_gap) { GstClockTime diff; @@ -2481,7 +2479,8 @@ gst_qt_mux_update_edit_lists (GstQTMux * qtmux) (guint32) (1 * 65536.0)); } - if (has_gap || has_shift) { + /* has shift */ + if (has_gap || (qtpad->dts_adjustment > 0)) { GstClockTime ctts; guint32 media_start;