Commit 1d93e6d0 authored by Bastien Nocera's avatar Bastien Nocera Committed by Bastien Nocera

When printing gallery progress, switch off buffering, and blocking output

2009-02-16  Bastien Nocera  <hadess@hadess.net>

	* src/totem-video-thumbnailer.c (main): When printing
	gallery progress, switch off buffering, and blocking output


svn path=/trunk/; revision=5984
parent a6beb750
2009-02-16 Bastien Nocera <hadess@hadess.net>
* src/totem-video-thumbnailer.c (main): When printing
gallery progress, switch off buffering, and blocking output
2009-02-16 Bastien Nocera <hadess@hadess.net>
* src/totem-video-thumbnailer.c (create_gallery): Only ever
......
......@@ -36,6 +36,7 @@
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "bacon-video-widget.h"
......@@ -785,6 +786,11 @@ int main (int argc, char *argv[])
return 1;
}
if (print_progress) {
fcntl (fileno (stdout), F_SETFL, O_NONBLOCK);
setbuf (stdout, NULL);
}
if (g_fatal_warnings) {
GLogLevelFlags fatal_mask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment