diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-10-02 03:20:51 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-10-02 03:20:51 +0200 |
commit | 7ed856c1c7f34c7fc2e96301f113510900239421 (patch) | |
tree | 76f085ad53aed3879f30003f435142c1a2adada9 /src | |
parent | added 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.c | 2 |
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); |