Archived
2
0
Commit Graph

10 Commits

Author SHA1 Message Date
b1ce755210 Add glib main loop to capture manager ()
The gstreamer documentation is not particularly amazing on whether or
not this is necessary, but it's clear that some gstreamer events will
not be delivered to their handlers without a running glib loop. This
runs one loop for all pipelines, which should be more than enough.

Disclaimer: This may conflict in demodesk/neko with the dragdrop
feature. Anyone backporting this bug fix to that repo should
investigate whether the loop created by `gtk_main()` will conflict with
this one before blindly porting.

Fixes 
Fixes 
2024-03-27 21:35:04 +01:00
2b13220d63 Fix buffer overflow in Gstreamer log function ()
vsprintf() is dangerous, and can overflow easily, especially with small
buffers like the 100 byte one that was being used. This changes the
buffer size to a more sane 4KiB, and uses vsnprintf() to automatically
concatenate a large log message instead of overflowing and crashing.
2024-03-27 21:32:47 +01:00
009ceddbd3 gst: move sample channel to AttachAppsink. 2023-01-29 20:31:00 +01:00
fdf17cfe77 channel should not close on destroy 2023-01-29 20:31:00 +01:00
628c6a1b77 remove wait timer from goroutine 2023-01-29 20:31:00 +01:00
ee13e40d4c go fmt. 2023-01-29 20:31:00 +01:00
5690a849e2 remove go-events 2023-01-29 20:31:00 +01:00
fd43f84bd0 refactor capture with broadcast. 2022-09-17 18:37:30 +02:00
deabba80ca move pipelines from gst to capture. 2022-09-13 20:35:53 +02:00
c0ca073b2d move gst and broadcast under capture. 2022-09-13 20:35:53 +02:00