mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
Fix get_caps func to work when no framerate is available and the caps isn't simple.
Original commit message from CVS: Fix get_caps func to work when no framerate is available and the caps isn't simple.
This commit is contained in:
parent
3281a63637
commit
f2ff9c1617
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-05-02 Edgard Lima <edgard.lima@indt.org.br>
|
||||||
|
|
||||||
|
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_caps):
|
||||||
|
Fix get_caps func to work when no framerate is available and the caps
|
||||||
|
isn't simple.
|
||||||
|
|
||||||
2006-05-01 Edgard Lima <edgard.lima@indt.org.br>
|
2006-05-01 Edgard Lima <edgard.lima@indt.org.br>
|
||||||
|
|
||||||
* sys/v4l2/Makefile.am:
|
* sys/v4l2/Makefile.am:
|
||||||
|
|
|
@ -675,15 +675,13 @@ gst_v4l2src_get_caps (GstBaseSrc * src)
|
||||||
if (fps_n > 0) {
|
if (fps_n > 0) {
|
||||||
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
|
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
|
||||||
fps_n, fps_d, NULL);
|
fps_n, fps_d, NULL);
|
||||||
|
} else {
|
||||||
|
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE,
|
||||||
|
1, 1, 100, 1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_caps_append_structure (caps, structure);
|
gst_caps_append_structure (caps, structure);
|
||||||
|
|
||||||
if (fps_n <= 0) {
|
|
||||||
gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION_RANGE,
|
|
||||||
1, 1, 100, 1, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue