diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-09-28 17:08:47 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-09-28 17:08:47 +0000 |
commit | 210e3a8e67e7ab5b225d45d99e2a850a43aff843 (patch) | |
tree | fe26e7c9785547ea256ef83b492dbf0dfabca2b4 /sys/v4l2/gstv4l2src.c | |
parent | f0cf378a420ef88fa1ed59a1fd32188863610592 (diff) |
sys/v4l2/: Framerate can be 0/1 too.
Original commit message from CVS:
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_all_caps),
(gst_v4l2src_get_caps):
* sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists):
Framerate can be 0/1 too.
Init framerate to 0/1 before querying it so that we can detect
devices that don't know about a framerate.
Add some more debugging info.
Diffstat (limited to 'sys/v4l2/gstv4l2src.c')
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 486a3b91..e151f16d 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -684,7 +684,7 @@ gst_v4l2src_get_all_caps (void) gst_structure_set (structure, "width", GST_TYPE_INT_RANGE, 1, GST_V4L2_MAX_SIZE, "height", GST_TYPE_INT_RANGE, 1, GST_V4L2_MAX_SIZE, - "framerate", GST_TYPE_FRACTION_RANGE, 1, 1, 100, 1, NULL); + "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1, NULL); gst_caps_append_structure (caps, structure); } } @@ -754,7 +754,7 @@ gst_v4l2src_get_caps (GstBaseSrc * src) /* another approach for web-cams would be to try to set a very high(100/1) and low(1/1) FPSs and get the values returned */ gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, - 1, 1, 100, 1, NULL); + 0, 1, 100, 1, NULL); gst_caps_append_structure (caps, structure); } |