summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-11-12 16:13:25 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-11-19 12:23:22 +0100
commitfc958520c328641b74ca04b6a416f0c77b8fddc7 (patch)
tree7c318120db9f873c7a5b56dce34e2f87868b6931
parentfc8a0d121c157720ae25b684f28e909e79d56e24 (diff)
downloadgst-vaapi-fc958520c328641b74ca04b6a416f0c77b8fddc7.tar.gz
vaapipostproc: params video_info_changed() callers
The signature is video_info_changed(old_vip, new_vip). Nonetheless the callers swapped the the order. This didn't raise problems since the comparison of both structures were not affected by its semantics. But still it would be better to fix this to keep the coherence of the code. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=758007
-rw-r--r--gst/vaapi/gstvaapipostproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index 38fa9b5c..18f3474b 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -867,7 +867,7 @@ gst_vaapipostproc_update_sink_caps (GstVaapiPostproc * postproc, GstCaps * caps,
if (!gst_video_info_from_caps (&vi, caps))
return FALSE;
- if (video_info_changed (&vi, &postproc->sinkpad_info))
+ if (video_info_changed (&postproc->sinkpad_info, &vi))
postproc->sinkpad_info = vi, *caps_changed_ptr = TRUE;
deinterlace = is_deinterlace_enabled (postproc, &vi);
@@ -892,7 +892,7 @@ gst_vaapipostproc_update_src_caps (GstVaapiPostproc * postproc, GstCaps * caps,
if (!gst_video_info_from_caps (&vi, caps))
return FALSE;
- if (video_info_changed (&vi, &postproc->srcpad_info))
+ if (video_info_changed (&postproc->srcpad_info, &vi))
postproc->srcpad_info = vi, *caps_changed_ptr = TRUE;
if (postproc->format != GST_VIDEO_INFO_FORMAT (&postproc->sinkpad_info) &&
@@ -1217,7 +1217,7 @@ ensure_srcpad_buffer_pool (GstVaapiPostproc * postproc, GstCaps * caps)
GST_VIDEO_INFO_WIDTH (&vi), GST_VIDEO_INFO_HEIGHT (&vi));
if (postproc->filter_pool
- && !video_info_changed (&vi, &postproc->filter_pool_info))
+ && !video_info_changed (&postproc->filter_pool_info, &vi))
return TRUE;
postproc->filter_pool_info = vi;