module-rtp: only stop timer when it was running

This commit is contained in:
Wim Taymans 2024-02-15 17:48:58 +01:00
parent 49e7e3a0f0
commit 5082e9f458
2 changed files with 3 additions and 1 deletions

View file

@ -87,6 +87,7 @@ struct impl {
struct pw_loop *data_loop;
struct spa_source *timer;
bool timer_running;
int (*receive_rtp)(struct impl *impl, uint8_t *buffer, ssize_t len);
void (*flush_timeout)(struct impl *impl, uint64_t expirations);