mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
basetransform: Handle the new renegotiate event
Let basetransform push a renegotiate event upstream when it gets a new suggestion
This commit is contained in:
parent
a3dd59e97a
commit
3baed25383
1 changed files with 8 additions and 0 deletions
|
@ -1844,6 +1844,9 @@ gst_base_transform_src_eventfunc (GstBaseTransform * trans, GstEvent * event)
|
||||||
gst_base_transform_update_qos (trans, proportion, diff, timestamp);
|
gst_base_transform_update_qos (trans, proportion, diff, timestamp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GST_EVENT_RENEGOTIATE:
|
||||||
|
gst_pad_set_caps (GST_BASE_TRANSFORM_SINK_PAD (trans), NULL);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2579,6 +2582,11 @@ gst_base_transform_suggest (GstBaseTransform * trans, GstCaps * caps,
|
||||||
trans->priv->suggest_pending = TRUE;
|
trans->priv->suggest_pending = TRUE;
|
||||||
GST_DEBUG_OBJECT (trans, "new suggest %" GST_PTR_FORMAT, caps);
|
GST_DEBUG_OBJECT (trans, "new suggest %" GST_PTR_FORMAT, caps);
|
||||||
GST_OBJECT_UNLOCK (trans->sinkpad);
|
GST_OBJECT_UNLOCK (trans->sinkpad);
|
||||||
|
|
||||||
|
/* push the renegotiate event */
|
||||||
|
if (!gst_pad_push_event (GST_BASE_TRANSFORM_SINK_PAD (trans),
|
||||||
|
gst_event_new_renegotiate ()))
|
||||||
|
GST_DEBUG_OBJECT (trans, "Renegotiate event wasn't handled");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue