mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
fix pa_gettimeofday() return value testing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1215 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
adfa76c433
commit
2d702715f7
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data)
|
||||||
if (!dbus_timeout_get_enabled(timeout))
|
if (!dbus_timeout_get_enabled(timeout))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (pa_gettimeofday(&tv) < 0)
|
if (!pa_gettimeofday(&tv))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
pa_timeval_add(&tv, dbus_timeout_get_interval(timeout) * 1000);
|
pa_timeval_add(&tv, dbus_timeout_get_interval(timeout) * 1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue