diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-06-29 13:35:59 +0300 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-06-29 13:35:59 +0300 |
commit | d14a201699356d1a0fcb140d0700e15df52cc52e (patch) | |
tree | 140a7d55db3b7d83a8055bd7abfc956a5e840a6c | |
parent | a1eef1c35505ae5df9d96ed98eab5c928da77e06 (diff) | |
download | gst-vaapi-d14a201699356d1a0fcb140d0700e15df52cc52e.tar.gz |
vaapipostproc: Fix wrong selection of passthrough mode.
The Current code path is falling back to passthorugh mode if there is no
vpp property set by the user explictily. But we should not use the
passthrough mode if the negotiated src pad caps have a differnt color space
format than sink pad caps (Even though the user didn't set the format property
explicitly).
https://bugzilla.gnome.org/show_bug.cgi?id=748184
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
-rw-r--r-- | gst/vaapi/gstvaapipostproc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 124ccded..74743c12 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -1110,6 +1110,7 @@ gst_vaapipostproc_transform_caps_impl (GstBaseTransform * trans, peer_caps = gst_caps_fixate (peer_caps); gst_video_info_from_caps (&peer_vi, peer_caps); out_format = GST_VIDEO_INFO_FORMAT (&peer_vi); + postproc->format = out_format; if (peer_caps) gst_caps_unref (peer_caps); } |