[PATCH 1/2] winegstreamer: Don't invert the proportion twice in wg_parser_stream_notify_qos().

Zebediah Figura z.figura12 at gmail.com
Tue Mar 16 16:06:31 CDT 2021


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/wg_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 85909f1c8f8..801fc096302 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -694,7 +694,7 @@ static void CDECL wg_parser_stream_notify_qos(struct wg_parser_stream *stream,
     GstEvent *event;
 
     if (!(event = gst_event_new_qos(underflow ? GST_QOS_TYPE_UNDERFLOW : GST_QOS_TYPE_OVERFLOW,
-            1000.0 / proportion, diff * 100, timestamp * 100)))
+            proportion, diff * 100, timestamp * 100)))
         ERR("Failed to create QOS event.\n");
     gst_pad_push_event(stream->my_sink, event);
 }
-- 
2.20.1




More information about the wine-devel mailing list