media-session: set media (sub)type on dsp nodes

This commit is contained in:
Wim Taymans 2018-12-13 17:26:35 +01:00
parent 3ab95f66f3
commit 8e969c9d44

View file

@ -1186,6 +1186,8 @@ static void dsp_node_event_info(void *object, struct pw_node_info *info)
dsp->direction = s->direction;
dsp->type = NODE_TYPE_DSP;
dsp->manager = s;
dsp->media_type = s->node->media_type;
dsp->media_subtype = s->node->media_subtype;
dsp->format = s->node->format;
dsp->profile_format = dsp->format;
dsp->profile_format.format = SPA_AUDIO_FORMAT_F32P;