Hello,
I was porting v4l2src element on TI Davinci platform and found a possible bug in v4l2src element. v4l2src creates a list of supported norms by using VIDIOC_ENUMSTD ioctl and then it calls gst_v4l2_get_norm() to get the current norms and finally compares "if (norm == GST_V4L2_TUNER_NORM (item->data)->index)" to return the select norm object/ This comparison will not always return correct standard probed via the driver. because its possible that driver returns the subset of a known standard instead of the real-standard. e.g NTSC instead of NTSC_M. see v4l2 spec on why: http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html#STANDARD The spec has a example showing how the comparison is done. A very small patch to fix this: diff -uNr orig/gst-plugins-good-0.10.10/sys/v4l2/gstv4l2tuner.c gst-plugins-good-0.10.10/sys/v4l2/gstv4l2tuner.c --- orig/gst-plugins-good-0.10.10/sys/v4l2/gstv4l2tuner.c 2007-07-18 06:42:33.000000000 -0500 +++ gst-plugins-good-0.10.10/sys/v4l2/gstv4l2tuner.c 2009-01-29 16:11:21.000000000 -0600 @@ -244,7 +244,7 @@ gst_v4l2_get_norm (v4l2object, &norm); for (item = v4l2object->norms; item != NULL; item = item->next) { - if (norm == GST_V4L2_TUNER_NORM (item->data)->index) + if (norm & GST_V4L2_TUNER_NORM (item->data)->index) return (GstTunerNorm *) item->data; } Please correct me if i'm wrong. Thanks, Brijesh Singh ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Thu, 2009-01-29 at 17:30 -0600, Brijesh Singh wrote:
> Hello, > > I was porting v4l2src element on TI Davinci platform and found a > possible bug in v4l2src element. Could you file a bug in bugzilla please? http://gstreamer.freedesktop.org/bugs/ Cheers -Tim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Done Bug#569820.
Thanks Brijesh Singh On Fri, Jan 30, 2009 at 5:03 AM, Tim-Philipp Müller <[hidden email]> wrote: > On Thu, 2009-01-29 at 17:30 -0600, Brijesh Singh wrote: >> Hello, >> >> I was porting v4l2src element on TI Davinci platform and found a >> possible bug in v4l2src element. > > Could you file a bug in bugzilla please? > > http://gstreamer.freedesktop.org/bugs/ > > Cheers > -Tim > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > -- Confusion is always the most honest response. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |