[PATCH v2 1/2] winegstreamer: Respect integer promotion rules when clamping timestamp + diff.
Zebediah Figura
z.figura12 at gmail.com
Thu Oct 22 11:10:16 CDT 2020
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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);
--
2.28.0
More information about the wine-devel
mailing list