From: Edgard Lima Date: Wed, 30 Aug 2006 18:01:52 +0000 (+0000) Subject: Another small fix to set_caps function. X-Git-Tag: 1.19.3~507^2~21398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afae632a69555ba7a7864077bf741d37b2f90826;p=platform%2Fupstream%2Fgstreamer.git Another small fix to set_caps function. Original commit message from CVS: Another small fix to set_caps function. --- diff --git a/ChangeLog b/ChangeLog index 1d16487..dc12697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2006-08-30 Edgard Lima * sys/v4l2/gstv4l2src.c: + Another small fix to set_caps function (sucks copy/paste error). + +2006-08-30 Edgard Lima + + * sys/v4l2/gstv4l2src.c: Send new_segment in GST_FORMAT_TIME instead of in GST_FORMAT_BYTES. 2006-08-30 Edgard Lima diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index b1263fd..ff83b0f 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); } }