plugin: don't lose previous context at query
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 4 Nov 2015 19:37:05 +0000 (20:37 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 9 Nov 2015 15:18:19 +0000 (16:18 +0100)
commit28c366a003c6483a0602775b3dd18add75c12592
treef96ae7e8efb49aa6ea005572b805015ef9596003
parented280f5b84cce8c46a529acff5c30692834d5bc5
plugin: don't lose previous context at query

When processing the GST_CONTEXT_QUERY we should not lose the previous
context in the query, we should only add our display structure.

This patch copies the old context, if it is there, and stamp our display on
it. Otherwise, a new context is created.

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