From f6ffe34ad5c2eb9e6a3f7907e31a6a899be6a45d Mon Sep 17 00:00:00 2001 From: Fabian Orccon Date: Sat, 28 Oct 2023 08:10:48 +0200 Subject: [PATCH] gst-inspect: Do not check for element clock Clock is only set at GST_PLAYING state, not the case for gst-inspect Part-of: --- subprojects/gstreamer/tools/gst-inspect.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/subprojects/gstreamer/tools/gst-inspect.c b/subprojects/gstreamer/tools/gst-inspect.c index 7f549ed339..c91219e4dd 100644 --- a/subprojects/gstreamer/tools/gst-inspect.c +++ b/subprojects/gstreamer/tools/gst-inspect.c @@ -927,17 +927,9 @@ print_clocking_info (GstElement * element) n_print ("%selement requires a clock%s\n", PROP_VALUE_COLOR, RESET_COLOR); } - if (provides_clock) { - GstClock *clock; - clock = gst_element_get_clock (element); - if (clock) { - n_print ("%selement provides a clock%s: %s%s%s\n", PROP_VALUE_COLOR, - RESET_COLOR, DATATYPE_COLOR, GST_OBJECT_NAME (clock), RESET_COLOR); - gst_object_unref (clock); - } else - n_print ("%selement is supposed to provide a clock but returned NULL%s\n", - PROP_VALUE_COLOR, RESET_COLOR); + if (provides_clock) { + n_print ("%selement provides a clock%s\n", PROP_VALUE_COLOR, RESET_COLOR); } pop_indent ();