Skip to content

Commit

Permalink
Set stop_at_end in getNext() rather than in main.cpp, as it gets lost.
Browse files Browse the repository at this point in the history
  • Loading branch information
acaudwell committed Jul 6, 2010
1 parent 892ebed commit 9e783f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/gource_shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ Gource* GourceShell::getNext() {

gGourceSettings.importGourceSettings(*conf, *gource_settings);

//recording a video kind of implies you want this
if(exporter!=0 && !gGourceSettings.dont_stop && !gGourceSettings.loop)
gGourceSettings.stop_at_end = true;

//multiple repo special settings
if(gGourceSettings.repo_count > 1) {

Expand Down
4 changes: 1 addition & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ int main(int argc, char *argv[]) {
FrameExporter* exporter = 0;

if(gGourceSettings.output_ppm_filename.size() > 0) {
//recording a video kind of implies you want this
if(!gGourceSettings.dont_stop) gGourceSettings.stop_at_end = true;

try {

Expand Down Expand Up @@ -141,7 +139,7 @@ int main(int argc, char *argv[]) {
}

if(gourcesh != 0) delete gourcesh;
if(exporter != 0) delete exporter;
if(exporter != 0) delete exporter;

//free resources
display.quit();
Expand Down

0 comments on commit 9e783f3

Please sign in to comment.