[PATCH 2/5] strmbase: Remove the unused "qos_handled" field from struct strmbase_qc.

Zebediah Figura z.figura12 at gmail.com
Sun Mar 7 14:49:04 CST 2021


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/strmbase/renderer.c | 5 +----
 include/wine/strmbase.h  | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/strmbase/renderer.c b/dlls/strmbase/renderer.c
index f3869c868dc..5af3fca4e5f 100644
--- a/dlls/strmbase/renderer.c
+++ b/dlls/strmbase/renderer.c
@@ -64,7 +64,6 @@ static void QualityControlRender_Start(struct strmbase_qc *This, REFERENCE_TIME
     This->avg_rate = -1.0;
     This->rendered = This->dropped = 0;
     This->is_dropped = FALSE;
-    This->qos_handled = TRUE; /* Lie that will be corrected on first adjustment */
 }
 
 static BOOL QualityControlRender_IsLate(struct strmbase_qc *This, REFERENCE_TIME jitter,
@@ -187,7 +186,6 @@ static void QualityControlRender_DoQOS(struct strmbase_qc *priv)
 
     if (priv->avg_rate >= 0.0)
     {
-        HRESULT hr;
         Quality q;
 
         /* If we have a valid rate, start sending QoS messages. */
@@ -211,8 +209,7 @@ static void QualityControlRender_DoQOS(struct strmbase_qc *priv)
             q.Proportion = 5000;
         q.Late = priv->current_jitter;
         q.TimeStamp = priv->current_rstart;
-        hr = IQualityControl_Notify(&priv->IQualityControl_iface, &priv->pin->filter->IBaseFilter_iface, q);
-        priv->qos_handled = hr == S_OK;
+        IQualityControl_Notify(&priv->IQualityControl_iface, &priv->pin->filter->IBaseFilter_iface, q);
     }
 
     /* Record when this buffer will leave us. */
diff --git a/include/wine/strmbase.h b/include/wine/strmbase.h
index 51dcb3a8c55..848f4bac35b 100644
--- a/include/wine/strmbase.h
+++ b/include/wine/strmbase.h
@@ -283,7 +283,7 @@ struct strmbase_qc
     REFERENCE_TIME current_jitter, current_rstart, current_rstop, clockstart;
     double avg_rate;
     LONG64 rendered, dropped;
-    BOOL qos_handled, is_dropped;
+    BOOL is_dropped;
 };
 
 struct strmbase_renderer
-- 
2.20.1




More information about the wine-devel mailing list