From 123c2f8b5dd473e4587b662c3f2a4c92de1e4b12 Mon Sep 17 00:00:00 2001 From: Robert Rosengren Date: Mon, 29 Apr 2019 11:25:02 +0200 Subject: [PATCH] alsasrc: driver timestamps only to be considered if system clock The system clock check when considering to use driver timestamp should not include sub-classes of system clock (such as the net clocks). --- ext/alsa/gstalsasrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index 3c28ac98ab..5f5a17bd94 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -265,7 +265,7 @@ gst_alsasrc_change_state (GstElement * element, GstStateChange transition) clk = gst_element_get_clock (element); if (clk != NULL) { - if (GST_IS_SYSTEM_CLOCK (clk)) { + if (G_OBJECT_TYPE (clk) == GST_TYPE_SYSTEM_CLOCK) { gint clocktype; g_object_get (clk, "clock-type", &clocktype, NULL); if (clocktype == GST_CLOCK_TYPE_MONOTONIC &&