diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-01-09 16:08:17 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-01-09 16:16:36 +0100 |
commit | d3d489a855f56e5a39b6f8265e1c8e7b1bfa49e1 (patch) | |
tree | fad087973cac527f1873579ab12b6d8427234468 | |
parent | 7ced30dbac4dbf578b4a7e32a8120c3dab4ad8e0 (diff) |
vaapivideomemory: use GST_VIDEO_INFO_FORMAT_STRING()
Use the existing local macro GST_VIDEO_INFO_FORMAT_STRING() to get
the video format string.
-rw-r--r-- | gst/vaapi/gstvaapivideomemory.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index fa14ba7c..46955709 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -799,8 +799,7 @@ bail: /* ERRORS */ error_invalid_format: { - GST_ERROR ("Cannot handle format %s", - gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (vinfo))); + GST_ERROR ("Cannot handle format %s", GST_VIDEO_INFO_FORMAT_STRING (vinfo)); return FALSE; } error_no_surface: @@ -997,8 +996,8 @@ gst_vaapi_dmabuf_memory_new (GstAllocator * base_allocator, error_create_surface: { GST_ERROR ("failed to create VA surface (format:%s size:%ux%u)", - gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (vip)), - GST_VIDEO_INFO_WIDTH (vip), GST_VIDEO_INFO_HEIGHT (vip)); + GST_VIDEO_INFO_FORMAT_STRING (vip), GST_VIDEO_INFO_WIDTH (vip), + GST_VIDEO_INFO_HEIGHT (vip)); return NULL; } error_create_surface_proxy: |