mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
sys/v4l2/gstv4l2src.c: Fix against template (#150576).
Original commit message from CVS: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_getcaps): Fix against template (#150576).
This commit is contained in:
parent
fe26f230a7
commit
c4a1368ee2
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-01-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_getcaps):
|
||||||
|
Fix against template (#150576).
|
||||||
|
|
||||||
2005-01-06 Benjamin Otte <otte@gnome.org>
|
2005-01-06 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* gst/games/gstpuzzle.c: (draw_puzzle):
|
* gst/games/gstpuzzle.c: (draw_puzzle):
|
||||||
|
|
|
@ -787,6 +787,15 @@ gst_v4l2src_getcaps (GstPad * pad)
|
||||||
&min_w, &max_w, &min_h, &max_h)) {
|
&min_w, &max_w, &min_h, &max_h)) {
|
||||||
continue;
|
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 */
|
/* add to list */
|
||||||
structure = gst_v4l2src_v4l2fourcc_to_caps (format->pixelformat);
|
structure = gst_v4l2src_v4l2fourcc_to_caps (format->pixelformat);
|
||||||
|
|
Loading…
Reference in a new issue