Commit Graph

195 Commits

Author SHA1 Message Date
Martin Piatka
f5c69aa486 GUI: control socket: reset socket before new connection 2022-10-18 13:15:12 +02:00
Martin Piatka
1378bad9ff GUI: Remove now unused random port helper 2022-10-18 13:00:57 +02:00
Martin Piatka
894dbdcc65 GUI: Use "0" for a random port 2022-10-18 13:00:57 +02:00
Martin Piatka
ba7c40a4be GUI: Use controlPort class 2022-10-18 13:00:56 +02:00
Martin Piatka
6dea418cb1 GUI: vuMeter: Use the controlPort class for ug communication
Should make the meter much quikcer to start reporiting volumes after
start
2022-10-18 13:00:56 +02:00
Martin Piatka
97cba4d2d3 GUI: Control port class 2022-10-18 12:11:13 +02:00
Martin Piatka
85019bbec0 GUI: Factor log line processing into function 2022-10-18 12:06:04 +02:00
Martin Piatka
27bd5f9148 GUI: func for reading preview process output 2022-10-18 12:06:03 +02:00
Martin Piatka
e1dcefc9d2 GUI: recv_report: Older QT compat 2022-10-05 16:10:52 +02:00
Martin Piatka
7a9a2de03d GUI: Show RTCP Receiver report widget 2022-10-05 15:52:18 +02:00
Martin Piatka
cfd083a804 GUI: Add line buffer util class 2022-10-05 15:52:17 +02:00
Martin Piatka
768032958c GUI: recv_report: Add timeout 2022-10-05 15:52:17 +02:00
Martin Piatka
750df41a64 GUI: Add RTCP receiver report widget 2022-10-05 15:52:17 +02:00
Martin Piatka
a6f1969c30 GUI: Fix NDI link in about 2022-10-05 15:52:16 +02:00
Martin Piatka
1b9629fbe4 GUI: Use :convert for V4L2
The :RGB option was removed in e9c255d0e
2022-09-29 16:43:39 +02:00
Martin Piatka
0a5657685c GUI: Use get_temp_dir() for preview 2022-09-13 13:54:24 +02:00
Martin Piatka
415be28119 GUI: Get random control socket port by binding to 0
This lowers the chance of getting an already used port. This is still
not perfect as the port could still be taken before ug starts, but
should be good enough until we invert the client-server relationship
between gui and ug for control-port.
2022-08-22 15:30:07 +02:00
Martin Piatka
d084b4d74e GUI: pick a random port for control port 2022-08-19 14:38:03 +02:00
Martin Piatka
11df451c58 GUI: vuMeter: Set port on each ug launch 2022-08-18 16:41:51 +02:00
Martin Piatka
4502da9c3c GUI: vuMeter: ability to set port 2022-08-18 16:41:48 +02:00
Martin Piatka
2a78639120 GUI: vuMeter: move connection deleter to cpp file 2022-08-18 16:40:36 +02:00
Martin Piatka
c26c99b299 GUI: vuMeter: move ctor/dtor to cpp file 2022-08-18 16:23:20 +02:00
Martin Piatka
072b96d602 GUI: vuMeter: Use delete functor for connection 2022-08-17 16:13:41 +02:00
Martin Piatka
571dace83b GUI: vuMeter: Improve reconnection logic 2022-08-17 16:13:40 +02:00
Martin Piatka
b33b64c923 GUI: vuMeter: Remove unused variable and includes 2022-08-17 16:10:50 +02:00
Martin Piatka
2e96274af7 GUI: Don't exit() on close event
Allows all destructors to run on exit. This was probably used to work
around a deadlock, but is perhaps not necessary anymore. There may still
be however a delay of a few seconds because of the vuMeters
connection loop.
2022-08-17 16:10:49 +02:00
Martin Piatka
f6100f1f66 GUI: workaround qmake not knowing about c++17 2022-08-16 10:32:55 +02:00
Martin Piatka
66a7a3058a GUI: settings: replace QRandomGenerator by std random 2022-08-16 10:32:55 +02:00
Martin Piatka
95d064d41a GUI: Use random key for preview sockets 2022-08-16 10:32:55 +02:00
Martin Piatka
80a2540c8b GUI: previewWidget: take key as string_view 2022-08-16 10:31:50 +02:00
Martin Piatka
7509ec4c9a GUI: settings: generate a random string as preview key 2022-08-16 10:31:50 +02:00
Martin Piatka
9f21eba57d GUI: Bump C++ version to c++17 2022-08-16 10:00:00 +02:00
Martin Piatka
09ba7d0dad GUI: Remove unnecessary spacer 2022-06-28 16:50:28 +02:00
Martin Piatka
9daac0b249 GUI: Adjust layout resizing behaviour
* Layout groupboxes directly in grid layout
* Disable combo boxes resizing based on contents (sizeAdjustPolicy)
* Reduce minimum combo box width to 8
2022-06-28 16:50:28 +02:00
Martin Piatka
25f528fd93 GUI: Fix blocking process termination 2022-06-24 13:40:24 +02:00
Martin Piatka
d201d382c3 GUI/preview: Fix loading non multiple of 4 width textures 2022-06-24 13:40:24 +02:00
Martin Piatka
e835a6b983 GUI/preview: Add "debug.hpp" include to satisfy assert 2022-06-24 13:40:24 +02:00
Martin Piatka
ca620bc6cc GUI: switch to unix socket based preview 2022-06-24 13:40:24 +02:00
Martin Piatka
4e0e35d3de GUI: Set default surface format before creating window
This fixes "OpenGL 3.3 needed" error on MacOS introduced in
33219c3687
2022-06-20 13:29:09 +02:00
Martin Piatka
7ac17735c0 GUI: Fix assert condition 2022-06-20 10:28:09 +02:00
Martin Piatka
060f31aa2f GUI: Fix preview not updating on input change on win32 2022-06-15 12:58:02 +02:00
Martin Piatka
14fdb7b395 GUI: processMngr: verify that process started 2022-06-10 14:33:34 +02:00
Martin Piatka
07c44d499a GUI: Add ASSERT_GUI macro with a QMessageBox 2022-06-10 14:33:33 +02:00
Martin Piatka
1c817b003c GUI: Do not treat ug exiting by itself as a crash 2022-06-10 14:33:33 +02:00
Martin Piatka
bb93f54614 GUI: Reduce preview launch timeout 2022-06-10 14:33:33 +02:00
Martin Piatka
6d6762c7e5 GUI: Add DEBUG_ASSERT 2022-06-10 14:33:32 +02:00
Martin Piatka
c987f17986 GUI: Stop ultragrid processes asynchronously
Blocking until the process is finished was not very robust - in some
cases it could cause a deadlock preventing graceful exit. For example,
if the ug process is communicating with GUI through a socket and uses
blocking send - ug will wait for GUI to receive the data and GUI will
block waiting for ug to terminate.

Using this approach also allows to ignore crashes on exit, which are not
really worth reporting.
2022-06-10 14:33:32 +02:00
Martin Piatka
cc3a28d095 GUI: When killing processes leave a message in log
When ug process doesn't respond to termination GUI needs to kill it.
This makes the return code equal to 9 and GUI complains about a crash.
Without a message in the log this could have been confusing.
2022-06-09 12:57:37 +02:00
Martin Piatka
1749ad4398 GUI: preview: don't needlessly repeat gl calls
*setting attrib ptrs needs to be done only once
*don't update the texture on every draw
2022-05-31 14:19:50 +02:00
Martin Piatka
dd37b3f1ee GUI/preview: Split frame loading into a function 2022-05-31 14:16:27 +02:00