diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-11-23 17:21:23 +0200 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-11-23 17:21:23 +0200 |
commit | 0f3e8139567ee8658aba68657a53f040cd94c29e (patch) | |
tree | ee980fc32d7c6792cd884637327f6d5cc0011c98 /gst/vaapi/gstvaapipostproc.c | |
parent | f355e62170d75ceb2c7eccb5cebdd583e2f27e46 (diff) |
vaapipostproc: Correctly detect the caps change
This is a quick fix for regression introuduced by the
commit 757833230bc73b8e3b4e31649e4618ba802bea51
With out this, the gst_vaapipostproc_create() will
never get invoked.
https://bugzilla.gnome.org/show_bug.cgi?id=758543
Diffstat (limited to 'gst/vaapi/gstvaapipostproc.c')
-rw-r--r-- | gst/vaapi/gstvaapipostproc.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 982b69e8..7334fdf2 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -855,14 +855,6 @@ video_info_changed (GstVideoInfo * old_vip, GstVideoInfo * new_vip) return FALSE; } -static inline gboolean -video_info_is_filled (GstVideoInfo * info) -{ - return (GST_VIDEO_INFO_FORMAT (info) > GST_VIDEO_FORMAT_UNKNOWN - && GST_VIDEO_INFO_WIDTH (info) > 0 - && GST_VIDEO_INFO_HEIGHT (info) > 0); -} - static gboolean video_info_update (GstCaps * caps, GstVideoInfo * info, gboolean * caps_changed_ptr) @@ -874,7 +866,7 @@ video_info_update (GstCaps * caps, GstVideoInfo * info, *caps_changed_ptr = FALSE; if (video_info_changed (info, &vi)) { - *caps_changed_ptr = video_info_is_filled (info); + *caps_changed_ptr = TRUE; *info = vi; } |