mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
d6adaccf6d
commit
f6ffe34ad5
1 changed files with 2 additions and 10 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue