OSDN Git Service

[BUG][MOVIE_SAVER] Fix changing cartridges.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 17 Jun 2016 18:28:35 +0000 (03:28 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 17 Jun 2016 18:28:35 +0000 (03:28 +0900)
source/src/qt/avio/movie_saver_fileio.cpp

index 0a4284f..f011a9e 100644 (file)
@@ -183,10 +183,15 @@ bool MOVIE_SAVER::do_open(QString filename, int _fps, int _sample_rate)
        AVOutputFormat *fmt;
        AVFormatContext *oc;
        //AVCodec *audio_codec, *video_codec;
-       int ret;
+       //do_close_main();
+       while(req_close) {
+               msleep(10);
+       }
+       int ret;
        have_video = 0, have_audio = 0;
        int encode_video = 0, encode_audio = 0;
-       do_close_main();
+
+        
        raw_options_list = NULL;
 
        do_set_record_fps(_fps);