summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/writer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index 361d43e..3c63ccc 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -163,6 +163,14 @@ static int check_boundaries(writer_t* writer)
localtime_r(&(now.tv_sec), &now_bd);
log_printf(DEBUG, "it's now: %02d:%02d:%02d on %d.%d.%d", now_bd.tm_hour, now_bd.tm_min, now_bd.tm_sec, now_bd.tm_mday, now_bd.tm_mon+1, now_bd.tm_year+1900);
+ // TODO: check if boundary has been reached
+ // if yes:
+ // - open new file
+ // - add new file
+ // - remove old file
+ // - calculate next filename and boundary
+ // - call post processing script from fd_removed callback
+
return 0;
}
@@ -199,6 +207,8 @@ int writer_start(writer_t* writer)
if(ret)
return ret;
+ // TODO: add fd to fdsink
+
writer->clock_id_ = gst_clock_new_periodic_id(writer->clock_, 0, writer->interval_);
if(!writer->clock_id_) {
log_printf(ERROR, "clock id could not be created");