[mutter] screen-cast-stream-src: Adjust to pipewire API break
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen-cast-stream-src: Adjust to pipewire API break
- Date: Thu, 21 Sep 2017 16:15:39 +0000 (UTC)
commit f0c6c4eb1fa2b21e3806a31bbae0f210b029907e
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Sep 20 19:54:45 2017 +0200
screen-cast-stream-src: Adjust to pipewire API break
https://bugzilla.gnome.org/show_bug.cgi?id=787953
src/backends/meta-screen-cast-stream-src.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index 7f82177..e6d99d5 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -535,7 +535,13 @@ meta_screen_cast_stream_src_initable_init (GInitable *initable,
return FALSE;
}
+#if PIPEWIRE_VERSION_MICRO == 4
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)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]