Commit bad8365b authored by Aman Gupta's avatar Aman Gupta

avcodec/v4l2_context: return {decoder,encoder}_cmd errors

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent 6852b850
......@@ -226,6 +226,8 @@ static int v4l2_stop_decode(V4L2Context *ctx)
/* DECODER_CMD is optional */
if (errno == ENOTTY)
return ff_v4l2_context_set_status(ctx, VIDIOC_STREAMOFF);
else
return AVERROR(errno);
}
return 0;
......@@ -244,6 +246,8 @@ static int v4l2_stop_encode(V4L2Context *ctx)
/* ENCODER_CMD is optional */
if (errno == ENOTTY)
return ff_v4l2_context_set_status(ctx, VIDIOC_STREAMOFF);
else
return AVERROR(errno);
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment