winegstreamer: Respect integer promotion rules when clamping timestamp + diff.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-10-22 11:10:16 -05:00 committed by Alexandre Julliard
parent 4aabbaaf95
commit 458dfcb95a
1 changed files with 1 additions and 1 deletions

View File

@ -2060,7 +2060,7 @@ static HRESULT WINAPI GST_QualityControl_Notify(IQualityControl *iface, IBaseFil
/* The documentation specifies that timestamp + diff must be nonnegative. */
diff = qm.Late * 100;
if (timestamp < -diff)
if (diff < 0 && timestamp < (GstClockTime)-diff)
diff = -timestamp;
evt = gst_event_new_qos(type, qm.Proportion / 1000.0, diff, timestamp);