media-session: start the midi bridge from the session

This commit is contained in:
Wim Taymans 2019-10-02 21:12:42 +02:00
parent 0a6ad1adec
commit fb95e7660a
6 changed files with 41 additions and 10 deletions

View file

@ -30,7 +30,7 @@ extern const struct spa_handle_factory spa_alsa_source_factory;
extern const struct spa_handle_factory spa_alsa_sink_factory;
extern const struct spa_handle_factory spa_alsa_udev_factory;
extern const struct spa_handle_factory spa_alsa_device_factory;
extern const struct spa_handle_factory spa_alsa_midi_source_factory;
extern const struct spa_handle_factory spa_alsa_seq_bridge_factory;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
@ -52,7 +52,7 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
*factory = &spa_alsa_device_factory;
break;
case 4:
*factory = &spa_alsa_midi_source_factory;
*factory = &spa_alsa_seq_bridge_factory;
break;
default:
return 0;