mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
a4cde36476
commit
123c2f8b5d
1 changed files with 1 additions and 1 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue