summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-16 14:54:07 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-16 14:54:07 (GMT)
commit7e101e656eca81675cb220c0d925c8c750eba08d (patch)
tree84ca7e363e34a1ef7370bdc6a295a674f11daefd
parentc153935be4561f10a997bfea5f140dd8f160e080 (diff)
added some TODO comments
-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");