-
- Downloads
daemon: (VideoInputSelector) use MRL
This patch moves the video source parsing logic from the VideoInput class to the VideoInputSelector. Thus the VideoInput class is simpler and only deals with libav input. The VideoInputSelector class now takes as its switchInput() parameter (and thus the constructor parameter) a media resource locator (MRL) as commonly used by video players such as VLC. Currently, "v4l2://" and "display://" schemes are supported. The DBus API and documentation are updated accordingly. In the meantime, this fixes the confusion (and thus a bug) with a camera having a ':' char in its name, which was resulting in using the x11grab format. Refs: #45480
Showing
- daemon/src/client/dbus/video_controls-introspec.xml 12 additions, 1 deletiondaemon/src/client/dbus/video_controls-introspec.xml
- daemon/src/client/dbus/video_controls.cpp 7 additions, 7 deletionsdaemon/src/client/dbus/video_controls.cpp
- daemon/src/client/video_controls.h 1 addition, 1 deletiondaemon/src/client/video_controls.h
- daemon/src/video/video_input.cpp 29 additions, 48 deletionsdaemon/src/video/video_input.cpp
- daemon/src/video/video_input.h 1 addition, 4 deletionsdaemon/src/video/video_input.h
- daemon/src/video/video_input_selector.cpp 71 additions, 13 deletionsdaemon/src/video/video_input_selector.cpp
- daemon/src/video/video_input_selector.h 3 additions, 3 deletionsdaemon/src/video/video_input_selector.h
Please register or sign in to comment