From 7ed856c1c7f34c7fc2e96301f113510900239421 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 2 Oct 2014 03:20:51 +0200 Subject: a fixed length for the filename is just fine! --- src/pipelines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3