mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pod: make format like other PODs
This commit is contained in:
parent
e2d930e394
commit
f02f93cda9
13 changed files with 125 additions and 87 deletions
|
|
@ -308,8 +308,8 @@ spa_ffmpeg_enc_node_port_set_format (SpaNode *node,
|
|||
return SPA_RESULT_OK;
|
||||
}
|
||||
|
||||
if (format->media_type != SPA_MEDIA_TYPE_VIDEO ||
|
||||
format->media_subtype != SPA_MEDIA_SUBTYPE_RAW)
|
||||
if (format->body.media_type != SPA_MEDIA_TYPE_VIDEO ||
|
||||
format->body.media_subtype != SPA_MEDIA_SUBTYPE_RAW)
|
||||
return SPA_RESULT_INVALID_MEDIA_TYPE;
|
||||
|
||||
if ((res = spa_format_video_parse (format, &port->format[0]) < 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue