mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
raspivid: Also flush PTS file if flush is enabled
This commit is contained in:
committed by
Phil Elwell
parent
cc1ca18fb0
commit
44a3953fd1
@@ -1393,6 +1393,7 @@ static void encoder_buffer_callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buf
|
||||
pData->pstate->lasttime = buffer->pts;
|
||||
pts = buffer->pts - pData->pstate->starttime;
|
||||
fprintf(pData->pts_file_handle, "%lld.%03lld\n", pts/1000, pts%1000);
|
||||
if(pData->flush_buffers) fflush(pData->pts_file_handle);
|
||||
pData->pstate->frame++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user