Commit df651254 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix gcc warning

parent 0e9c3ddc
......@@ -128,8 +128,11 @@ static void jpg_process(MSFilter *f){
if (error<0){
ms_error("Could not encode jpeg picture.");
ms_message("Snapshot done");
if (fwrite(comp_buf,error,1,s->file)>0){
ms_message("Snapshot done");
ms_error("Error writing snapshot.");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment