summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-12-18 18:32:44 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-12-18 18:32:44 +0000
commite5832a7524780c1604ac43047705fee6688d6fde (patch)
tree90210999d677c702dcb791e6b32369a65cfd793c
parente2b5111f4a099c85b1b6c5269e1e85e0bf3b7a1b (diff)
downloadxine-lib-e5832a7524780c1604ac43047705fee6688d6fde.tar.gz
xine-lib-e5832a7524780c1604ac43047705fee6688d6fde.tar.bz2
Automatically flush lprintf() output.
CVS patchset: 8420 CVS date: 2006/12/18 18:32:44
-rw-r--r--src/xine-utils/xineutils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h
index 15f771da0..9c8ba507d 100644
--- a/src/xine-utils/xineutils.h
+++ b/src/xine-utils/xineutils.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xineutils.h,v 1.105 2006/10/16 22:18:24 valtri Exp $
+ * $Id: xineutils.h,v 1.106 2006/12/18 18:32:44 klan Exp $
*
*/
#ifndef XINEUTILS_H
@@ -847,6 +847,7 @@ void xine_hexdump (const char *buf, int length) XINE_PROTECTED;
do { \
LONG_LOG_MODULE_STRING \
printf(fmt, ##args); \
+ fflush(stdout); \
} while(0)
#else /* __GNUC__ */
#ifdef _MSC_VER
@@ -854,12 +855,14 @@ void xine_hexdump (const char *buf, int length) XINE_PROTECTED;
do { \
LONG_LOG_MODULE_STRING \
printf("%s", fmtargs); \
+ fflush(stdout); \
} while(0)
#else /* _MSC_VER */
#define lprintf(fmt, ...) \
do { \
LONG_LOG_MODULE_STRING \
printf(__VA_ARGS__); \
+ fflush(stdout); \
} while(0)
#endif /* _MSC_VER */
#endif /* __GNUC__ */