diff options
author | Alberto Fanjul <albertofanjul@gmail.com> | 2020-09-10 10:40:00 +0200 |
---|---|---|
committer | Alberto Fanjul <albertofanjul@gmail.com> | 2020-09-10 10:40:00 +0200 |
commit | d62ff32712e19768a351081f2c7a3bed31be27fb (patch) | |
tree | 587ec6bfa6b3754dfc3db433c021686901dc790f | |
parent | c8bd8d227c58247333dc511117f6432d474add3f (diff) | |
download | cheese-d62ff32712e19768a351081f2c7a3bed31be27fb.tar.gz |
Monitor x-h264 cameras
-rw-r--r-- | libcheese/cheese-camera-device-monitor.c | 2 | ||||
-rw-r--r-- | libcheese/cheese-camera-device.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libcheese/cheese-camera-device-monitor.c b/libcheese/cheese-camera-device-monitor.c index 19f4ff0b..4b6eab79 100644 --- a/libcheese/cheese-camera-device-monitor.c +++ b/libcheese/cheese-camera-device-monitor.c @@ -296,6 +296,8 @@ initable_init (GInitable *initable, gst_bus_add_watch (bus, cheese_camera_device_monitor_bus_func, monitor); gst_object_unref (bus); + caps = gst_caps_new_empty_simple ("video/x-h264"); + gst_device_monitor_add_filter (priv->monitor, "Video/Source", caps); caps = gst_caps_new_empty_simple ("video/x-raw"); gst_device_monitor_add_filter (priv->monitor, "Video/Source", caps); gst_caps_unref (caps); diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c index 08a0a26a..83bd4de6 100644 --- a/libcheese/cheese-camera-device.c +++ b/libcheese/cheese-camera-device.c @@ -71,6 +71,7 @@ GST_DEBUG_CATEGORY (cheese_camera_device_cat); static const gchar * const supported_formats[] = { "video/x-raw", + "video/x-h264", NULL }; |