strmbase: Remove the unused "qos_handled" field from struct strmbase_qc.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-03-07 14:49:04 -06:00 committed by Alexandre Julliard
parent 4f72fbef11
commit 4d400a71fa
2 changed files with 2 additions and 5 deletions
dlls/strmbase
include/wine

View File

@ -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. */

View File

@ -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