mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
Another small fix to set_caps function.
Original commit message from CVS: Another small fix to set_caps function.
This commit is contained in:
parent
0a4f66220f
commit
b1d7198d6e
1 changed files with 2 additions and 6 deletions
|
@ -825,9 +825,7 @@ gst_v4l2src_set_caps (GstBaseSrc * src, GstCaps * caps)
|
|||
gst_structure_set (structure,
|
||||
"width", G_TYPE_INT, w,
|
||||
"height", G_TYPE_INT, h,
|
||||
"framerate", GST_TYPE_FRACTION,
|
||||
gst_value_get_fraction_numerator (framerate),
|
||||
gst_value_get_fraction_denominator (framerate), NULL);
|
||||
"framerate", GST_TYPE_FRACTION, fps_n, fps_d, NULL);
|
||||
} else {
|
||||
gst_structure_set (structure,
|
||||
"width", G_TYPE_INT, w, "height", G_TYPE_INT, h, NULL);
|
||||
|
@ -847,9 +845,7 @@ gst_v4l2src_set_caps (GstBaseSrc * src, GstCaps * caps)
|
|||
gst_structure_set (structure,
|
||||
"width", G_TYPE_INT, w,
|
||||
"height", G_TYPE_INT, h,
|
||||
"framerate", GST_TYPE_FRACTION,
|
||||
gst_value_get_fraction_numerator (framerate),
|
||||
gst_value_get_fraction_denominator (framerate), NULL);
|
||||
"framerate", GST_TYPE_FRACTION, v4l2src->fps_n, v4l2src->fps_d, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue