libs: re-introduce a GST_VAAPI_ID_INVALID value.

Re-introduce a GST_VAAPI_ID_INVALID value that represents
a non-zero and invalid id. This is useful to have a value
that is still invalid for cases where zero could actually
be a valid value.
This commit is contained in:
Gwenole Beauchesne 2014-12-04 14:36:35 +01:00
parent fd775b4400
commit f270838515

View file

@ -37,6 +37,21 @@ G_BEGIN_DECLS
*/
typedef gsize GstVaapiID;
/**
* GST_VAAPI_ID:
* @id: an arbitrary integer value
*
* Macro that creates a #GstVaapiID from @id.
*/
#define GST_VAAPI_ID(id) ((GstVaapiID)(id))
/**
* GST_VAAPI_ID_INVALID:
*
* Macro that evaluates to an invalid #GstVaapiID value.
*/
#define GST_VAAPI_ID_INVALID GST_VAAPI_ID((gssize)(gint32)-1)
/**
* GST_VAAPI_ID_FORMAT:
*