mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: fix switch on media_subtype
This commit is contained in:
parent
5b42c07b15
commit
7072f2b78a
2 changed files with 4 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ spa_format_audio_parse(const struct spa_pod *format, struct spa_audio_info *info
|
|||
if (info->media_type != SPA_MEDIA_TYPE_audio)
|
||||
return -EINVAL;
|
||||
|
||||
switch (info->media_type) {
|
||||
switch (info->media_subtype) {
|
||||
case SPA_MEDIA_SUBTYPE_raw:
|
||||
return spa_format_audio_raw_parse(format, &info->info.raw);
|
||||
case SPA_MEDIA_SUBTYPE_dsp:
|
||||
|
|
@ -72,7 +72,7 @@ spa_format_audio_parse(const struct spa_pod *format, struct spa_audio_info *info
|
|||
static inline struct spa_pod *
|
||||
spa_format_audio_build(struct spa_pod_builder *builder, uint32_t id, struct spa_audio_info *info)
|
||||
{
|
||||
switch (info->media_type) {
|
||||
switch (info->media_subtype) {
|
||||
case SPA_MEDIA_SUBTYPE_raw:
|
||||
return spa_format_audio_raw_build(builder, id, &info->info.raw);
|
||||
case SPA_MEDIA_SUBTYPE_dsp:
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ spa_format_video_parse(const struct spa_pod *format, struct spa_video_info *info
|
|||
if (info->media_type != SPA_MEDIA_TYPE_video)
|
||||
return -EINVAL;
|
||||
|
||||
switch (info->media_type) {
|
||||
switch (info->media_subtype) {
|
||||
case SPA_MEDIA_SUBTYPE_raw:
|
||||
return spa_format_video_raw_parse(format, &info->info.raw);
|
||||
case SPA_MEDIA_SUBTYPE_dsp:
|
||||
|
|
@ -63,7 +63,7 @@ spa_format_video_parse(const struct spa_pod *format, struct spa_video_info *info
|
|||
static inline struct spa_pod *
|
||||
spa_format_video_build(struct spa_pod_builder *builder, uint32_t id, struct spa_video_info *info)
|
||||
{
|
||||
switch (info->media_type) {
|
||||
switch (info->media_subtype) {
|
||||
case SPA_MEDIA_SUBTYPE_raw:
|
||||
return spa_format_video_raw_build(builder, id, &info->info.raw);
|
||||
case SPA_MEDIA_SUBTYPE_dsp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue