Ticket #12758: 0012-VideoConsumer.cpp-fix-gcc6-build.patch

File 0012-VideoConsumer.cpp-fix-gcc6-build.patch, 951 bytes (added by mt, 8 years ago)
  • src/apps/codycam/VideoConsumer.cpp

    From 697df1a10f3cfe202c58b9cdab99a5b9c4c8600f Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 16:53:04 +0900
    Subject: [PATCH 12/24] VideoConsumer.cpp: fix gcc6 build
    
    ---
     src/apps/codycam/VideoConsumer.cpp | 5 ++---
     1 file changed, 2 insertions(+), 3 deletions(-)
    
    diff --git a/src/apps/codycam/VideoConsumer.cpp b/src/apps/codycam/VideoConsumer.cpp
    index 7705c3d..c7a7df2 100644
    a b VideoConsumer::LocalSave(char* filename, BBitmap* bitmap)  
    674674            err = SetFileType(output, fTranslator, fImageFormat);
    675675            if (err != B_OK)
    676676                UpdateFtpStatus(B_TRANSLATE("Error setting type of output file"));
    677         }
    678         else
     677        } else {
    679678            UpdateFtpStatus(B_TRANSLATE("Error writing output file"));
    680 
     679    }
    681680        input.DetachBitmap(&bitmap);
    682681        output->Unset();
    683682        delete output;