mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-07 08:21:11 -04:00
fix TIMESPEC_TO_NSEC
This commit is contained in:
parent
8d9aae061b
commit
aade499aae
5 changed files with 5 additions and 5 deletions
|
|
@ -419,7 +419,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
if (this->props.live)
|
if (this->props.live)
|
||||||
this->start_time = SPA_TIMESPEC_TO_TIME(&now);
|
this->start_time = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
else
|
else
|
||||||
this->start_time = 0;
|
this->start_time = 0;
|
||||||
this->sample_count = 0;
|
this->sample_count = 0;
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
if (this->props.live)
|
if (this->props.live)
|
||||||
this->start_time = SPA_TIMESPEC_TO_TIME(&now);
|
this->start_time = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
else
|
else
|
||||||
this->start_time = 0;
|
this->start_time = 0;
|
||||||
this->buffer_count = 0;
|
this->buffer_count = 0;
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
if (this->props.live)
|
if (this->props.live)
|
||||||
this->start_time = SPA_TIMESPEC_TO_TIME(&now);
|
this->start_time = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
else
|
else
|
||||||
this->start_time = 0;
|
this->start_time = 0;
|
||||||
this->buffer_count = 0;
|
this->buffer_count = 0;
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
if (this->props.live)
|
if (this->props.live)
|
||||||
this->start_time = SPA_TIMESPEC_TO_TIME(&now);
|
this->start_time = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
else
|
else
|
||||||
this->start_time = 0;
|
this->start_time = 0;
|
||||||
this->frame_count = 0;
|
this->frame_count = 0;
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ static void on_timeout(void *userdata, uint64_t expirations)
|
||||||
#if 0
|
#if 0
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
h->pts = SPA_TIMESPEC_TO_TIME(&now);
|
h->pts = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
#else
|
#else
|
||||||
h->pts = -1;
|
h->pts = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue