diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-08 16:01:00 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-08 16:01:00 +0000 |
commit | fd4a7480e74008c0e654ad9bf790a8fa6625e661 (patch) | |
tree | 788f239de9462be4e688550b7e9377ed25aa0b77 /rMD-exp/src/init_encoder.c | |
parent | b3ef3b6cb05fbedb3e224521afd19b2c43d3a7db (diff) |
added --overwrite option and updated manpage accordingly
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@152 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/init_encoder.c')
-rw-r--r-- | rMD-exp/src/init_encoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rMD-exp/src/init_encoder.c b/rMD-exp/src/init_encoder.c index 4edfef1..84d36aa 100644 --- a/rMD-exp/src/init_encoder.c +++ b/rMD-exp/src/init_encoder.c @@ -66,8 +66,8 @@ void InitEncoder(ProgData *pdata,EncData *enc_data_t,int buffer_ready){ ogg_stream_init(&(enc_data_t)->m_ogg_ts,y1); if(!pdata->args.nosound) ogg_stream_init(&(enc_data_t)->m_ogg_vs,y2); - - IncrementalNaming(&(pdata)->args.filename); + if(!pdata->args.overwrite) + IncrementalNaming(&(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",(pdata)->args.filename); |