client-source: set format on client source

Set the format on the client source when it is created so that other
clients can inspect the format. It also makes client sources show up in
the device monitor.
This commit is contained in:
Wim Taymans 2015-07-14 11:34:59 +02:00
parent 81b7f15a0c
commit 1fec75d2a5
5 changed files with 109 additions and 20 deletions

View file

@ -63,7 +63,8 @@ struct _PinosClientSourceClass {
/* normal GObject stuff */
GType pinos_client_source_get_type (void);
PinosSource * pinos_client_source_new (PinosDaemon *daemon);
PinosSource * pinos_client_source_new (PinosDaemon *daemon,
GBytes *possible_formats);
PinosSourceOutput * pinos_client_source_get_source_input (PinosClientSource *source,
const gchar *client_path,