splitmuxsink: Remove unused muxed_out_time
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 15 Feb 2017 20:07:32 +0000 (15:07 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 17 Feb 2017 20:11:02 +0000 (15:11 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=761761

gst/multifile/gstsplitmuxsink.c
gst/multifile/gstsplitmuxsink.h

index edda426..9193614 100644 (file)
@@ -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;
index 1e4a91e..ea118ef 100644 (file)
@@ -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;