Commit d32146f7 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Do not restart file in raw mode when frame limit is reached

parent 29d98f2d
......@@ -523,7 +523,7 @@ int sendImageFrame(camogm_state *state)
int port = state->port_num;
// This is probably needed only for Quicktime (not to exceed already allocated frame index)
if (state->frameno >= (state->max_frames)) {
if (!state->rawdev_op && (state->frameno >= (state->max_frames))) {
D3(fprintf(debug_file, "sendImageFrame:1: state->frameno(0x%x) >= state->max_frames(0x%x)\n", state->frameno, state->max_frames));
return -CAMOGM_FRAME_CHANGED;
}
......
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