totem r5984 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r5984 - in trunk: . src
- Date: Mon, 16 Feb 2009 18:09:41 +0000 (UTC)
Author: hadess
Date: Mon Feb 16 18:09:41 2009
New Revision: 5984
URL: http://svn.gnome.org/viewvc/totem?rev=5984&view=rev
Log:
2009-02-16 Bastien Nocera <hadess hadess net>
* src/totem-video-thumbnailer.c (main): When printing
gallery progress, switch off buffering, and blocking output
Modified:
trunk/ChangeLog
trunk/src/totem-video-thumbnailer.c
Modified: trunk/src/totem-video-thumbnailer.c
==============================================================================
--- trunk/src/totem-video-thumbnailer.c (original)
+++ trunk/src/totem-video-thumbnailer.c Mon Feb 16 18:09:41 2009
@@ -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 @@
return 1;
}
+ if (print_progress) {
+ fcntl (fileno (stdout), F_SETFL, O_NONBLOCK);
+ setbuf (stdout, NULL);
+ }
+
if (g_fatal_warnings) {
GLogLevelFlags fatal_mask;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]