vaapidownload: fix src caps format error
authorWind Yuan <feng.yuan@intel.com>
Wed, 13 Mar 2013 09:44:52 +0000 (17:44 +0800)
committerWind Yuan <feng.yuan@intel.com>
Thu, 14 Mar 2013 07:53:51 +0000 (15:53 +0800)
gst/vaapi/gstvaapidownload.c

index 2f12711..7503320 100644 (file)
@@ -356,7 +356,7 @@ gst_vaapidownload_update_src_caps(GstVaapiDownload *download, GstBuffer *buffer)
         return FALSE;
     }
 
-    out_caps = gst_vaapi_image_format_get_caps(format);
+    out_caps = gst_vaapi_image_format_get_caps(download->image_format);
     if (!out_caps) {
         GST_WARNING("failed to create caps from format %" GST_FOURCC_FORMAT,
                     GST_FOURCC_ARGS(format));