Zebediah Figura : winegstreamer: Don't invert the proportion twice in wg_parser_stream_notify_qos().

Alexandre Julliard julliard at winehq.org
Wed Mar 17 16:23:14 CDT 2021


Module: wine
Branch: master
Commit: 11612cd3a8dc672640737326c64e04d5b7bf6bba
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=11612cd3a8dc672640737326c64e04d5b7bf6bba

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Mar 16 16:06:31 2021 -0500

winegstreamer: Don't invert the proportion twice in wg_parser_stream_notify_qos().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 f76ca903b80..51d7e3d9748 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);
 }




More information about the wine-cvs mailing list