mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
glvideomixer: Reject multiview video
glvideomixer does not support it currently and it needs special support for handling this correctly, and is rather non-trivial to implement for all formats.
This commit is contained in:
parent
aeb5d4edaf
commit
faf1e388f7
1 changed files with 24 additions and 0 deletions
|
@ -998,6 +998,30 @@ static GstCaps *
|
||||||
_update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
_update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
||||||
{
|
{
|
||||||
GstCaps *ret;
|
GstCaps *ret;
|
||||||
|
GList *l;
|
||||||
|
|
||||||
|
GST_OBJECT_LOCK (vagg);
|
||||||
|
for (l = GST_ELEMENT (vagg)->sinkpads; l; l = l->next) {
|
||||||
|
GstVideoAggregatorPad *vaggpad = l->data;
|
||||||
|
|
||||||
|
if (!vaggpad->info.finfo)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (GST_VIDEO_INFO_FORMAT (&vaggpad->info) == GST_VIDEO_FORMAT_UNKNOWN)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (GST_VIDEO_INFO_MULTIVIEW_MODE (&vaggpad->info) !=
|
||||||
|
GST_VIDEO_MULTIVIEW_MODE_NONE
|
||||||
|
&& GST_VIDEO_INFO_MULTIVIEW_MODE (&vaggpad->info) !=
|
||||||
|
GST_VIDEO_MULTIVIEW_MODE_MONO) {
|
||||||
|
GST_FIXME_OBJECT (vaggpad, "Multiview support is not implemented yet");
|
||||||
|
GST_OBJECT_UNLOCK (vagg);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_OBJECT_UNLOCK (vagg);
|
||||||
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
ret = gst_caps_intersect (caps, filter);
|
ret = gst_caps_intersect (caps, filter);
|
||||||
|
|
Loading…
Reference in a new issue