summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-02 03:20:51 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-02 03:20:51 +0200
commit7ed856c1c7f34c7fc2e96301f113510900239421 (patch)
tree76f085ad53aed3879f30003f435142c1a2adada9 /src
parentadded command line switch to disable automatic client handling (diff)
a fixed length for the filename is just fine!
Diffstat (limited to 'src')
-rw-r--r--src/pipelines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipelines.c b/src/pipelines.c
index 265162c..7434f0a 100644
--- a/src/pipelines.c
+++ b/src/pipelines.c
@@ -320,7 +320,7 @@ static gboolean create_recorder_elements(options_t* opt, GstElement* pipeline, s
clock_gettime(CLOCK_REALTIME, &now);
struct tm bd_time;
localtime_r(&(now.tv_sec), &bd_time);
- char recfile[1024]; //TODO: fix this hardcoded length
+ char recfile[1024];
recfile[0] = 0;
strftime(recfile, sizeof(recfile), opt->rec_name_format_, &bd_time);
g_object_set(G_OBJECT(sink), "location", recfile, NULL);