Revert "videoaggregator: Create new caps from the video-info"
This reverts commit 78215be0dfbb4e8ed4f249e161a94c644328d28d. because it broke glvideomixer with custom caps features.
This commit is contained in:
parent
90967b3d45
commit
50d2d9ac08
@ -599,24 +599,14 @@ gst_videoaggregator_src_setcaps (GstVideoAggregator * vagg, GstCaps * caps)
|
|||||||
if (vagg->priv->current_caps == NULL ||
|
if (vagg->priv->current_caps == NULL ||
|
||||||
gst_caps_is_equal (caps, vagg->priv->current_caps) == FALSE) {
|
gst_caps_is_equal (caps, vagg->priv->current_caps) == FALSE) {
|
||||||
GstClockTime latency;
|
GstClockTime latency;
|
||||||
GstCaps *full_caps;
|
|
||||||
|
|
||||||
/* Create new caps from the video-info, in case the original caps
|
gst_caps_replace (&vagg->priv->current_caps, caps);
|
||||||
* were missing some optional fields like interlace-mode. We assume
|
|
||||||
* default values for those everywhere, but they can still cause
|
|
||||||
* negotiation to fail if a downstream element expects the field to be
|
|
||||||
* there and at a specific value.
|
|
||||||
*/
|
|
||||||
full_caps = gst_video_info_to_caps (&info);
|
|
||||||
|
|
||||||
gst_caps_replace (&vagg->priv->current_caps, full_caps);
|
|
||||||
GST_VIDEO_AGGREGATOR_UNLOCK (vagg);
|
GST_VIDEO_AGGREGATOR_UNLOCK (vagg);
|
||||||
|
|
||||||
gst_aggregator_set_src_caps (agg, full_caps);
|
gst_aggregator_set_src_caps (agg, caps);
|
||||||
latency = gst_util_uint64_scale (GST_SECOND,
|
latency = gst_util_uint64_scale (GST_SECOND,
|
||||||
GST_VIDEO_INFO_FPS_D (&info), GST_VIDEO_INFO_FPS_N (&info));
|
GST_VIDEO_INFO_FPS_D (&info), GST_VIDEO_INFO_FPS_N (&info));
|
||||||
gst_aggregator_set_latency (agg, latency, latency);
|
gst_aggregator_set_latency (agg, latency, latency);
|
||||||
gst_caps_unref (full_caps);
|
|
||||||
|
|
||||||
GST_VIDEO_AGGREGATOR_LOCK (vagg);
|
GST_VIDEO_AGGREGATOR_LOCK (vagg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user