gst-inspect: Do not check for element clock

Clock is only set at GST_PLAYING state, not the case for gst-inspect

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5570>
This commit is contained in:
Fabian Orccon 2023-10-28 08:10:48 +02:00 committed by GStreamer Marge Bot
parent d6adaccf6d
commit f6ffe34ad5

View file

@ -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 ();