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:
parent
4f72fbef11
commit
4d400a71fa
|
@ -64,7 +64,6 @@ static void QualityControlRender_Start(struct strmbase_qc *This, REFERENCE_TIME
|
||||||
This->avg_rate = -1.0;
|
This->avg_rate = -1.0;
|
||||||
This->rendered = This->dropped = 0;
|
This->rendered = This->dropped = 0;
|
||||||
This->is_dropped = FALSE;
|
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,
|
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)
|
if (priv->avg_rate >= 0.0)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
|
||||||
Quality q;
|
Quality q;
|
||||||
|
|
||||||
/* If we have a valid rate, start sending QoS messages. */
|
/* 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.Proportion = 5000;
|
||||||
q.Late = priv->current_jitter;
|
q.Late = priv->current_jitter;
|
||||||
q.TimeStamp = priv->current_rstart;
|
q.TimeStamp = priv->current_rstart;
|
||||||
hr = IQualityControl_Notify(&priv->IQualityControl_iface, &priv->pin->filter->IBaseFilter_iface, q);
|
IQualityControl_Notify(&priv->IQualityControl_iface, &priv->pin->filter->IBaseFilter_iface, q);
|
||||||
priv->qos_handled = hr == S_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Record when this buffer will leave us. */
|
/* Record when this buffer will leave us. */
|
||||||
|
|
|
@ -283,7 +283,7 @@ struct strmbase_qc
|
||||||
REFERENCE_TIME current_jitter, current_rstart, current_rstop, clockstart;
|
REFERENCE_TIME current_jitter, current_rstart, current_rstop, clockstart;
|
||||||
double avg_rate;
|
double avg_rate;
|
||||||
LONG64 rendered, dropped;
|
LONG64 rendered, dropped;
|
||||||
BOOL qos_handled, is_dropped;
|
BOOL is_dropped;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct strmbase_renderer
|
struct strmbase_renderer
|
||||||
|
|
Loading…
Reference in New Issue