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).
This commit is contained in:
Robert Rosengren 2019-04-29 11:25:02 +02:00
parent a4cde36476
commit 123c2f8b5d

View file

@ -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 &&