diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-01-07 10:12:11 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-01-07 10:12:11 +0000 |
commit | 1278d44ad5481fa02267ab4c9ee7bba0fa13d4f1 (patch) | |
tree | b011e2c621ddb1f21d896e582683b2b8986ac12c /sys/v4l2 | |
parent | 33a8594b55017b9765f50ca44869a17439937412 (diff) | |
download | gst-plugins-bad-1278d44ad5481fa02267ab4c9ee7bba0fa13d4f1.tar.gz gst-plugins-bad-1278d44ad5481fa02267ab4c9ee7bba0fa13d4f1.tar.bz2 gst-plugins-bad-1278d44ad5481fa02267ab4c9ee7bba0fa13d4f1.zip |
sys/v4l2/gstv4l2src.c: Fix against template (#150576).
Original commit message from CVS:
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_getcaps):
Fix against template (#150576).
Diffstat (limited to 'sys/v4l2')
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index af20eebb..45b60bde 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -787,6 +787,15 @@ gst_v4l2src_getcaps (GstPad * pad) &min_w, &max_w, &min_h, &max_h)) { continue; } + /* template */ + if (min_w < 1) + min_w = 1; + if (min_h < 1) + min_h = 1; + if (max_w > 4096) + max_w = 4096; + if (max_h > 4096) + max_h = 4096; /* add to list */ structure = gst_v4l2src_v4l2fourcc_to_caps (format->pixelformat); |