[cheese/wip/albfan/x-h264: 1/2] Monitor x-h264 cameras
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/albfan/x-h264: 1/2] Monitor x-h264 cameras
- Date: Thu, 10 Sep 2020 08:41:34 +0000 (UTC)
commit d62ff32712e19768a351081f2c7a3bed31be27fb
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Thu Sep 10 10:40:00 2020 +0200
Monitor x-h264 cameras
libcheese/cheese-camera-device-monitor.c | 2 ++
libcheese/cheese-camera-device.c | 1 +
2 files changed, 3 insertions(+)
---
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
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]