Fix device discovery under GStreamer 1.16

This commit is contained in:
trilene 2021-01-07 09:48:25 -05:00
parent 2bd8a386e2
commit cf8a47503f
4 changed files with 4 additions and 0 deletions

View file

@ -46,6 +46,7 @@ Rectangle {
CallManager.hangUp(); CallManager.hangUp();
} }
else { else {
CallManager.refreshDevices();
var dialog = placeCallDialog.createObject(timelineRoot); var dialog = placeCallDialog.createObject(timelineRoot);
dialog.open(); dialog.open();
} }

View file

@ -71,6 +71,7 @@ Rectangle {
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: qsTr("Devices") ToolTip.text: qsTr("Devices")
onClicked: { onClicked: {
CallManager.refreshDevices();
var dialog = devicesDialog.createObject(timelineRoot); var dialog = devicesDialog.createObject(timelineRoot);
dialog.open(); dialog.open();
} }

View file

@ -53,6 +53,7 @@ public:
public slots: public slots:
void sendInvite(const QString &roomid, bool isVideo); void sendInvite(const QString &roomid, bool isVideo);
void syncEvent(const mtx::events::collections::TimelineEvents &event); void syncEvent(const mtx::events::collections::TimelineEvents &event);
void refreshDevices() { session_.refreshDevices(); }
void toggleMicMute(); void toggleMicMute();
void toggleCameraView() { session_.toggleCameraView(); } void toggleCameraView() { session_.toggleCameraView(); }
void acceptInvite(); void acceptInvite();

View file

@ -1292,6 +1292,7 @@ WebRTCSession::refreshDevices()
addDevice(GST_DEVICE_CAST(l->data)); addDevice(GST_DEVICE_CAST(l->data));
g_list_free(devices); g_list_free(devices);
} }
emit devicesChanged();
#endif #endif
} }