From c98d932fb869ab6e763972360b435830147a4414 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 15 Feb 2017 15:07:32 -0500 Subject: [PATCH] splitmuxsink: Remove unused muxed_out_time https://bugzilla.gnome.org/show_bug.cgi?id=761761 --- gst/multifile/gstsplitmuxsink.c | 8 ++------ gst/multifile/gstsplitmuxsink.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index edda426..9193614 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -932,10 +932,6 @@ handle_mq_output (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx) complete_or_wait_on_out (splitmux, ctx); - if (splitmux->muxed_out_time == GST_CLOCK_STIME_NONE || - splitmux->muxed_out_time < buf_info->run_ts) - splitmux->muxed_out_time = buf_info->run_ts; - splitmux->muxed_out_bytes += buf_info->buf_size; #ifndef GST_DISABLE_GST_DEBUG @@ -2128,8 +2124,8 @@ gst_splitmux_sink_change_state (GstElement * element, GstStateChange transition) splitmux->input_state = SPLITMUX_INPUT_STATE_COLLECTING_GOP_START; splitmux->output_state = SPLITMUX_OUTPUT_STATE_START_NEXT_FILE; splitmux->max_in_running_time = GST_CLOCK_STIME_NONE; - splitmux->gop_start_time = splitmux->muxed_out_time = - splitmux->fragment_start_time = GST_CLOCK_STIME_NONE; + splitmux->gop_start_time = splitmux->fragment_start_time = + GST_CLOCK_STIME_NONE; splitmux->muxed_out_bytes = 0; GST_SPLITMUX_UNLOCK (splitmux); break; diff --git a/gst/multifile/gstsplitmuxsink.h b/gst/multifile/gstsplitmuxsink.h index 1e4a91e..ea118ef 100644 --- a/gst/multifile/gstsplitmuxsink.h +++ b/gst/multifile/gstsplitmuxsink.h @@ -152,7 +152,6 @@ struct _GstSplitMuxSink GstClockTimeDiff max_out_running_time; GstClockTimeDiff next_max_out_running_time; - GstClockTimeDiff muxed_out_time; guint64 muxed_out_bytes; MqStreamCtx *reference_ctx; -- 2.7.4