splitmux: Fix typo converting to running time.
authorJan Schmidt <jan@centricular.com>
Mon, 8 Aug 2016 03:49:19 +0000 (13:49 +1000)
committerJan Schmidt <jan@centricular.com>
Mon, 8 Aug 2016 03:49:19 +0000 (13:49 +1000)
Use the correct collected timestamp.

gst/multifile/gstsplitmuxsink.c

index f52dc67..ee5f9a7 100644 (file)
@@ -1139,8 +1139,7 @@ handle_mq_input (GstPad * pad, GstPadProbeInfo * info, MqStreamCtx * ctx)
    * stream */
   if (GST_CLOCK_TIME_IS_VALID (ts)) {
     GstClockTimeDiff running_time =
-        my_segment_to_running_time (&ctx->in_segment,
-        GST_BUFFER_TIMESTAMP (buf));
+        my_segment_to_running_time (&ctx->in_segment, ts);
 
     GST_LOG_OBJECT (pad, "Buffer running TS is %" GST_STIME_FORMAT,
         GST_STIME_ARGS (running_time));