mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Use v4l2 monitor
Use the v4l2 monitor to dynamically add and remove nodes. Use the info from the monitor as parameter for the factory init and use it to configure the new node. Add info to the node. Use info from the factory as properties on the PinosNode
This commit is contained in:
parent
9f53eda6cb
commit
6497c82a7d
23 changed files with 542 additions and 315 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include <server/module.h>
|
||||
|
||||
#include "spa-alsa-sink.h"
|
||||
#include "spa-v4l2-source.h"
|
||||
#include "spa-v4l2-monitor.h"
|
||||
#include "spa-audiotestsrc.h"
|
||||
|
||||
gboolean pinos__module_init (PinosModule *module, const gchar * args);
|
||||
|
|
@ -31,7 +31,7 @@ G_MODULE_EXPORT gboolean
|
|||
pinos__module_init (PinosModule * module, G_GNUC_UNUSED const gchar * args)
|
||||
{
|
||||
pinos_spa_alsa_sink_new (module->daemon, "alsa-sink", NULL);
|
||||
pinos_spa_v4l2_source_new (module->daemon, "v4l2-source", NULL);
|
||||
pinos_spa_v4l2_monitor_new (module->daemon);
|
||||
pinos_spa_audiotestsrc_new (module->daemon, "audiotestsrc", NULL);
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue