summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
Diffstat (limited to 'rotord')
-rw-r--r--rotord/src/libavwrapper.cpp7
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);