Commit 4d24f0a2 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Do not limit segment duration in fast recording mode

parent 7963a1f7
......@@ -593,7 +593,7 @@ int sendImageFrame(camogm_state *state)
return -CAMOGM_FRAME_CHANGED; // not yet checking for the FPS
}
// check if file duration (in seconds) exceeded ,-CAMOGM_FRAME_CHANGED will trigger a new segment
if ((state->segment_duration > 0) &&
if (!state->rawdev_op && (state->segment_duration > 0) &&
((state->this_frame_params[port].timestamp_sec - state->frame_params[port].timestamp_sec) > state->segment_duration)) {
D3(fprintf(debug_file, "sendImageFrame:10: segment duration in seconds exceeded\n"));
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