The source project of this merge request has been removed.
v4l2: Add protection when set decoder capture fps accroding to output fps
Some v4l2 drivers don't have the capacity to change framerate, which means didn't implement S_PARM ioctl. Then decoder capture fps may become 0/0 if numerator and denominator returned by G_PARM ioctl are both 0. fps 0/0 causes critical warning "passed '0' as denominator for `GstFraction'".
In order to avoid such warning, add protection to set decoder fps only when output fps is none 0 and denominator returned by G_PARM ioctl is none 0.