From 19923f8be8392c76f1ab0d195c07220b5565f7e7 Mon Sep 17 00:00:00 2001 From: enselic Date: Fri, 3 Oct 2008 09:14:44 +0000 Subject: src/rmd_init_encoder.c: When not overwriting files, output what filename that was eventually used. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@565 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/rmd_init_encoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'recordmydesktop/src') diff --git a/recordmydesktop/src/rmd_init_encoder.c b/recordmydesktop/src/rmd_init_encoder.c index c6d5576..72d499d 100644 --- a/recordmydesktop/src/rmd_init_encoder.c +++ b/recordmydesktop/src/rmd_init_encoder.c @@ -120,8 +120,11 @@ void InitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready){ } - if(!pdata->args.overwrite) + if (!pdata->args.overwrite) { IncrementalNaming(&(pdata)->args.filename); + fprintf(stderr, "Output file: %s\n", pdata->args.filename); + } + enc_data_t->fp=fopen((pdata)->args.filename,"w"); if(enc_data_t->fp==NULL){ fprintf(stderr,"Cannot open file %s for writting!\n", -- cgit v1.2.3