Skip to content
Browse files

Better error printing, move Gtk slider.

  • Loading branch information...
1 parent 2dc6d49 commit f9f0419be262be38e2f1d1202427fe443fa516cc @keithw committed Dec 26, 2010
Showing with 10 additions and 4 deletions.
  1. +0 −2 decoder.cpp
  2. +10 −2 ogl.cpp
View
2 decoder.cpp
@@ -67,10 +67,8 @@ void Decoder::loop( void )
delete op;
} else if ( state.playing ) {
state.current_picture++;
- /*
state.outputq.flush();
state.outputq.enqueue( new MoveSlider( state.current_picture ) );
- */
}
}
}
View
12 ogl.cpp
@@ -286,13 +286,21 @@ void OpcodeState::paint( void )
GetSync( display, window, &ust, &mbc, &sbc );
+ bool msg = false;
+
if ( (last_mbc != -1) && (mbc != last_mbc + 1) ) {
long int diff = mbc - last_mbc;
- fprintf( stderr, "Skipped %ld retraces.\n", diff );
+ fprintf( stderr, "[Skipped %ld retraces.]", diff );
+ msg = true;
}
if ( (last_us != -1) && ( (us_diff < 8000) || (us_diff > 24000) ) ) {
- fprintf( stderr, "Time diff was %ld us.\n", (long)us_diff );
+ fprintf( stderr, "%s[Time diff was %ld us.]", msg ? " " : "", (long)us_diff );
+ msg = true;
+ }
+
+ if ( msg ) {
+ fprintf( stderr, "\n" );
}
last_mbc = mbc;

0 comments on commit f9f0419

Please sign in to comment.
Something went wrong with that request. Please try again.