plugins: fix usage of gst_vaapi_reply_to_query().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 26 Mar 2013 17:57:00 +0000 (18:57 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 26 Mar 2013 17:57:00 +0000 (18:57 +0100)
commit578f7886509f39d34e47baa2c53ba718d2e15122
tree27af97f0278d4644bb50bbb52e487cb46155dfbe
parente6f0cbadd3bb75ddb1b1c4ebbd7b5a107289b83a
plugins: fix usage of gst_vaapi_reply_to_query().

Make gst_vaapi_reply_to_query() first check whether the query argument
is actually a video-context query, i.e. with type GST_QUERY_TYPE_CUSTOM.
Then, make sure vaapisink propagates the query to the parent class if
it is not a video-context query.
gst/vaapi/gstvaapipluginutil.c
gst/vaapi/gstvaapisink.c