Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 667014
Collapse All | Expand All

(-)xdg-desktop-portal-kde-5.15.5.orig/src/screencaststream.cpp (-3 / +3 lines)
Lines 246-253 static void onStreamFormatChanged(void * Link Here
246
static const struct pw_remote_events pwRemoteEvents = {
246
static const struct pw_remote_events pwRemoteEvents = {
247
    .version = PW_VERSION_REMOTE_EVENTS,
247
    .version = PW_VERSION_REMOTE_EVENTS,
248
    .destroy = nullptr,
248
    .destroy = nullptr,
249
    .info_changed = nullptr,
250
    .sync_reply = nullptr,
251
    .state_changed = onStateChanged,
249
    .state_changed = onStateChanged,
252
};
250
};
253
251
Lines 301-308 void ScreenCastStream::init() Link Here
301
    socketNotifier.reset(new QSocketNotifier(pw_loop_get_fd(pwLoop), QSocketNotifier::Read));
299
    socketNotifier.reset(new QSocketNotifier(pw_loop_get_fd(pwLoop), QSocketNotifier::Read));
302
    connect(socketNotifier.data(), &QSocketNotifier::activated, this, &ScreenCastStream::processPipewireEvents);
300
    connect(socketNotifier.data(), &QSocketNotifier::activated, this, &ScreenCastStream::processPipewireEvents);
303
301
302
#if PW_CHECK_VERSION(0, 2, 9)
303
    pwCore = pw_core_new(pwLoop, nullptr, 0);
304
#else
304
    pwCore = pw_core_new(pwLoop, nullptr);
305
    pwCore = pw_core_new(pwLoop, nullptr);
305
#if !PW_CHECK_VERSION(0, 2, 9)
306
    pwCoreType = pw_core_get_type(pwCore);
306
    pwCoreType = pw_core_get_type(pwCore);
307
#endif
307
#endif
308
    pwRemote = pw_remote_new(pwCore, nullptr, 0);
308
    pwRemote = pw_remote_new(pwCore, nullptr, 0);

Return to bug 667014