Skip to content

Commit

Permalink
Add image/jpeg caps to device filter to support MJPEG webcams (#237)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Wootten <[email protected]>
  • Loading branch information
marbetschar and Jeremy Wootten authored Jun 5, 2022
1 parent 3835b28 commit 2159d41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Widgets/CameraView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public class Camera.Widgets.CameraView : Gtk.Box {
monitor.get_bus ().add_watch (GLib.Priority.DEFAULT, on_bus_message);

var caps = new Gst.Caps.empty_simple ("video/x-raw");
caps.append (new Gst.Caps.empty_simple ("image/jpeg"));
monitor.add_filter ("Video/Source", caps);

init_device_timeout_id = Timeout.add_seconds (2, () => {
Expand Down

0 comments on commit 2159d41

Please sign in to comment.