diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-08-30 18:01:52 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-08-30 18:01:52 +0000 |
commit | afae632a69555ba7a7864077bf741d37b2f90826 (patch) | |
tree | 3605f3c90ba7a41928f886c6291a51b5328a2d4a /sys | |
parent | f1832d00b0fa2d16bec174c6132690a50475ee89 (diff) | |
download | gst-plugins-bad-afae632a69555ba7a7864077bf741d37b2f90826.tar.gz gst-plugins-bad-afae632a69555ba7a7864077bf741d37b2f90826.tar.bz2 gst-plugins-bad-afae632a69555ba7a7864077bf741d37b2f90826.zip |
Another small fix to set_caps function.
Original commit message from CVS:
Another small fix to set_caps function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index b1263fd7..ff83b0fa 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -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); } } |