[PATCH 1/2] winegstreamer: Respect integer promotion rules when clamping timestamp + diff.
Zebediah Figura
z.figura12 at gmail.com
Wed Oct 21 18:08:21 CDT 2020
Fixes: 5ca1d28e8df7e3e87e5b9f3ff51445b07dfcc2fb
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 ff41af1205b..ed65a0a598d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -2089,7 +2089,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