vaapipostproc: don't set caps change at first set
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 16 Nov 2015 16:49:01 +0000 (17:49 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 19 Nov 2015 11:23:22 +0000 (12:23 +0100)
commit757833230bc73b8e3b4e31649e4618ba802bea51
treee46fa234a6aa158919432bf4e8b84f5e031f94d5
parentfc958520c328641b74ca04b6a416f0c77b8fddc7
vaapipostproc: don't set caps change at first set

When the source caps change, the filter is destroyed and recreated.
Nonetheless, this happens every time the vaapipostproc starts, since the caps
change detection algorithm does not take in consideration when the caps are
set by first time.

This patch intents to be an optimization, to avoid a useless filter
destroy-creation cycle when the sources caps are set for first time.

The new helper function video_info_update() is a refactorization to avoid
duplicated code.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=758007
gst/vaapi/gstvaapipostproc.c