spa: specify SPA_FORMAT_VIDEO_MODIFIER as DMA-BUF only

SPA_FORMAT_VIDEO_MODIFIER is only valid with DMA-BUF transport.
For using other types of buffers omit this property.
This commit is contained in:
columbarius 2021-10-14 20:19:21 +02:00
parent 1f5396fedb
commit 07d0b14955
2 changed files with 4 additions and 2 deletions

View file

@ -120,7 +120,8 @@ enum spa_format {
/* Video Format keys */
SPA_FORMAT_START_Video = 0x20000,
SPA_FORMAT_VIDEO_format, /**< video format (Id enum spa_video_format) */
SPA_FORMAT_VIDEO_modifier, /**< format modifier (Long) */
SPA_FORMAT_VIDEO_modifier, /**< format modifier (Long)
* use only with DMA-BUF and omit for other buffer types */
SPA_FORMAT_VIDEO_size, /**< size (Rectangle) */
SPA_FORMAT_VIDEO_framerate, /**< frame rate (Fraction) */
SPA_FORMAT_VIDEO_maxFramerate, /**< maximum frame rate (Fraction) */