]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: More robust timestamp checking
authorSean Bright <sean.bright@gmail.com>
Tue, 27 Apr 2021 17:31:30 +0000 (13:31 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 30 Apr 2021 14:00:31 +0000 (09:00 -0500)
commit95414fc9185592870970473aca1a17214649f09e
treefc1ee018bb712aed90f38d3c3926847445676d3d
parent1949d828b7d39b26aa474d94ab64bc8cc5ff3c5c
res_rtp_asterisk: More robust timestamp checking

We assume that a timestamp value of 0 represents an 'uninitialized'
timestamp, but 0 is a valid value. Add a simple wrapper to be able to
differentiate between whether the value is set or not.

This also removes the fix for ASTERISK~28812 which should not be
needed if we are checking the last timestamp appropriately.

ASTERISK-29030 #close

Change-Id: Ie70d657d580d9a1f2877e25a6ef161c5ad761cf7
res/res_rtp_asterisk.c