mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
Format: implement intersection and fixate
This commit is contained in:
parent
9dd826136d
commit
7a7ede96e5
11 changed files with 205 additions and 195 deletions
|
|
@ -35,10 +35,11 @@ spa_pod_builder_push_format (SpaPODBuilder *builder,
|
|||
uint32_t media_type,
|
||||
uint32_t media_subtype)
|
||||
{
|
||||
const SpaFormat p = { { { sizeof (SpaPODObjectBody) + sizeof (SpaFormatBody), SPA_POD_TYPE_OBJECT }, { 0, 0 } },
|
||||
{ { { sizeof (uint32_t), SPA_POD_TYPE_INT }, media_type },
|
||||
{ { sizeof (uint32_t), SPA_POD_TYPE_INT }, media_subtype } } };
|
||||
return spa_pod_builder_push (builder, frame, &p.obj.pod,
|
||||
const SpaFormat p = { { sizeof (SpaFormatBody), SPA_POD_TYPE_OBJECT },
|
||||
{ { 0, 0 },
|
||||
{ { sizeof (uint32_t), SPA_POD_TYPE_INT }, media_type }, 0,
|
||||
{ { sizeof (uint32_t), SPA_POD_TYPE_INT }, media_subtype }, 0 } };
|
||||
return spa_pod_builder_push (builder, frame, &p.pod,
|
||||
spa_pod_builder_raw (builder, &p, sizeof(p), false));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue