From 6b7206dee9993e4a1cd74b488b86712baf1a810a Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 1 Oct 2013 13:48:49 +0100 Subject: testing without NOFILE flag --- rotord/src/libavwrapper.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rotord/src/libavwrapper.cpp') diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index 7ce9a0e..ed0d0d0 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -200,7 +200,8 @@ bool libav::exporter::record(std::string filename){ av_dump_format(oc, 0, filename.c_str(), 1); // open the output file, if needed // - if (!(fmt->flags & AVFMT_NOFILE)) { + //if (!(fmt->flags & AVFMT_NOFILE)) { //removed 011013 trying to catch elusive crash + { Mutex::ScopedLock lock(mutex); int ret = avio_open(&oc->pb, filename.c_str(), AVIO_FLAG_WRITE); if (ret < 0) { @@ -314,7 +315,9 @@ void libav::exporter::finishRecord(){ if (audio_st) close_audio(oc, audio_st); - if (!(fmt->flags & AVFMT_NOFILE)) { + + //if (!(fmt->flags & AVFMT_NOFILE)) { //removed 011013 trying to catch elusive crash + { // Close the output file. // Mutex::ScopedLock lock(mutex); avio_close(oc->pb); -- cgit v1.2.3