mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vaapidownload: fix src caps format error.
This fixes direct linking of vaapidownload element to xvimagesink with VA drivers supporting vaGetImage() from the native VA surface format to a different VA image format. i.e. color conversion during download. http://bugzilla.gnome.org/show_bug.cgi?id=703937 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
4668e59bf6
commit
9b3ad4daad
1 changed files with 2 additions and 2 deletions
|
@ -334,10 +334,10 @@ gst_vaapidownload_update_src_caps(GstVaapiDownload *download, GstBuffer *buffer)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
out_caps = gst_video_format_to_caps(format);
|
||||
out_caps = gst_video_format_to_caps(download->image_format);
|
||||
if (!out_caps) {
|
||||
GST_WARNING("failed to create caps from format %s",
|
||||
gst_video_format_to_string(format));
|
||||
gst_video_format_to_string(download->image_format));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue