appsink: optionally obtain current caps from negotiated pad caps
This commit is contained in:
parent
2ddc6bb63d
commit
435c340d15
@ -697,6 +697,15 @@ restart:
|
|||||||
if (priv->flushing)
|
if (priv->flushing)
|
||||||
goto flushing;
|
goto flushing;
|
||||||
|
|
||||||
|
/* queue holding caps event might have been FLUSHed,
|
||||||
|
* but caps state still present in pad caps */
|
||||||
|
if (G_UNLIKELY (!priv->last_caps &&
|
||||||
|
gst_pad_has_current_caps (GST_BASE_SINK_PAD (psink)))) {
|
||||||
|
priv->last_caps = gst_pad_get_current_caps (GST_BASE_SINK_PAD (psink));
|
||||||
|
GST_DEBUG_OBJECT (appsink, "activating pad caps %" GST_PTR_FORMAT,
|
||||||
|
priv->last_caps);
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (appsink, "pushing render buffer %p on queue (%d)",
|
GST_DEBUG_OBJECT (appsink, "pushing render buffer %p on queue (%d)",
|
||||||
buffer, priv->num_buffers);
|
buffer, priv->num_buffers);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user