Zebediah Figura : winegstreamer: Respect integer promotion rules when clamping timestamp + diff.
Alexandre Julliard
julliard at winehq.org
Thu Oct 22 15:27:32 CDT 2020
Module: wine
Branch: master
Commit: 458dfcb95a9d8877921574535fc0d8d08084ac6b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=458dfcb95a9d8877921574535fc0d8d08084ac6b
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Oct 22 11:10:16 2020 -0500
winegstreamer: Respect integer promotion rules when clamping timestamp + diff.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 6279c2c28c0..68b12cf8f14 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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);
More information about the wine-cvs
mailing list