screen-cast-stream-src: Adjust to pipewire API break

https://bugzilla.gnome.org/show_bug.cgi?id=787953
This commit is contained in:
Florian Müllner 2017-09-20 19:54:45 +02:00
parent ba194bd19e
commit f0c6c4eb1f

View File

@ -535,7 +535,13 @@ meta_screen_cast_stream_src_initable_init (GInitable *initable,
return FALSE; return FALSE;
} }
#if PIPEWIRE_VERSION_MICRO == 4
priv->pipewire_remote = pw_remote_new (priv->pipewire_core, NULL); priv->pipewire_remote = pw_remote_new (priv->pipewire_core, NULL);
#elif PIPEWIRE_VERSION_MICRO >= 5
priv->pipewire_remote = pw_remote_new (priv->pipewire_core, NULL, 0);
#else
priv->pipewire_remote = NULL;
#endif
if (!priv->pipewire_remote) if (!priv->pipewire_remote)
{ {
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,