Commit 7ce14b6b authored by Edgard Gusmão Lima's avatar Edgard Gusmão Lima
Browse files

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.
parent cba47ec3
......@@ -675,15 +675,13 @@ gst_v4l2src_get_caps (GstBaseSrc * src)
if (fps_n > 0) {
gst_structure_set (structure, "framerate", GST_TYPE_FRACTION,
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);
if (fps_n <= 0) {
gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION_RANGE,
1, 1, 100, 1, NULL);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment