Wrap FFmpeg operations in mutexes, switch to MP4

I can't believe I wasn't doing this.  This is why file output was
getting corrupted.  Audio and video send in data from separate threads.
I should be embarassed for not having considered that.

Key lesson:  Increase threading paranoia levels.  Apparently my
threading paranoid levels are lackluster.
This commit is contained in:
jp9000
2014-02-28 03:50:30 -07:00
parent d5b0121e79
commit 4e10eeda09
3 changed files with 23 additions and 6 deletions

View File

@@ -601,7 +601,7 @@ void OBSBasic::on_recordButton_clicked()
} else {
QString path = QFileDialog::getSaveFileName(this,
"Please enter a file name", QString(),
"AVI Files (*.avi)");
"MP4 Files (*.mp4)");
if (path.isNull() || path.isEmpty())
return;