Commit d56cfd2d authored by Rafaël Carré's avatar Rafaël Carré

opensles: TimeGet returns -1 when we have no data on latency

parent 8a1ace9e
......@@ -174,7 +174,10 @@ static int TimeGet(audio_output_t* p_aout, mtime_t* restrict drift)
return -1;
}
*drift = (delay && st.count) ? delay : 0;
if (delay == 0 || st.count == 0)
return -1;
*drift = delay;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment