diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-01 13:48:49 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-01 13:48:49 +0100 |
| commit | 6b7206dee9993e4a1cd74b488b86712baf1a810a (patch) | |
| tree | 8ad48bb066686b4d6c0d80c95144406fa6211bf5 /rotord/src | |
| parent | 36501495fa94759a5fcec3bd26ab184d684007c7 (diff) | |
testing without NOFILE flag
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/libavwrapper.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); |
