Lines Matching defs:ret
326 int ret;
335 ret = AVERROR(errno);
336 if (ret == AVERROR(EINVAL)) {
339 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
666 int i, ret;
669 (ret = av_parse_video_rate(&framerate_q, s->framerate)) < 0) {
672 return ret;
677 ret = 0;
683 ret = AVERROR(errno);
689 if (ret < 0) {
691 return ret;
695 ret = AVERROR(errno);
696 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_S_STD): %s\n", av_err2str(ret));
697 return ret;
711 ret = AVERROR(errno);
712 if (ret == AVERROR(EINVAL)
714 || ret == AVERROR(ENODATA)
720 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_ENUMSTD): %s\n", av_err2str(ret));
721 return ret;
736 ret = AVERROR(errno);
737 av_log(ctx, AV_LOG_WARNING, "ioctl(VIDIOC_G_PARM): %s\n", av_err2str(ret));
748 ret = AVERROR(errno);
750 av_err2str(ret));
751 return ret;
784 int ret, i;
789 ret = device_init(ctx, width, height, *desired_format);
790 if (ret < 0) {
792 if (ret != AVERROR(EINVAL))
793 return ret;
806 ret = device_init(ctx, width, height, *desired_format);
807 if (ret >= 0)
809 else if (ret != AVERROR(EINVAL))
810 return ret;
820 ret = AVERROR(EINVAL);
826 av_assert0(ret == AVERROR(EINVAL));
827 return ret;
1031 int ret = 0;
1038 ret = AVERROR(errno);
1039 av_log(ctx, AV_LOG_ERROR, "Couldn't open the directory: %s\n", av_err2str(ret));
1040 return ret;
1054 ret = AVERROR(ENOSYS);
1062 ret = AVERROR(errno);
1063 av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n", av_err2str(ret));
1069 ret = AVERROR(ENOMEM);
1075 ret = AVERROR(ENOMEM);
1079 if ((ret = av_dynarray_add_nofree(&device_list->devices,
1096 return ret;