splitmuxsink: Add debug for fragment opened/closed msgs
authorJan Schmidt <jan@centricular.com>
Mon, 14 Sep 2020 14:27:24 +0000 (00:27 +1000)
committerJan Schmidt <jan@centricular.com>
Tue, 8 Dec 2020 14:03:01 +0000 (01:03 +1100)
When posting fragment-opened and fragment-closed messages,
put a debug statement in the logs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/833>

gst/multifile/gstsplitmuxsink.c

index 2c5c5ed..ff0b5f9 100644 (file)
@@ -1108,6 +1108,9 @@ send_fragment_opened_closed_msg (GstSplitMuxSink * splitmux, gboolean opened,
           "location") != NULL)
     g_object_get (sink, "location", &location, NULL);
 
+  GST_DEBUG_OBJECT (splitmux,
+      "Sending %s message. Running time %" GST_TIME_FORMAT " location %s",
+      msg_name, GST_TIME_ARGS (running_time), GST_STR_NULL (location));
 
   /* If it's in the middle of a teardown, the reference_ctc might have become
    * NULL */