[vlc-devel] commit: vlc_pthread_fatal: fix error message ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jun 28 19:42:20 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun 28 20:43:51 2008 +0300| [f8fbd68453c4f2dd24de8bc4864993afdf40eccf]
vlc_pthread_fatal: fix error message
The error message was overriden to "Illegal seek"
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8fbd68453c4f2dd24de8bc4864993afdf40eccf
---
src/misc/threads.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 1d9ed4d..bd23b3a 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -101,14 +101,13 @@ void vlc_pthread_fatal (const char *action, int error,
{
fprintf (stderr, "LibVLC fatal error %s in thread %lu at %s:%u: %d\n",
action, vlc_threadid (), file, line, error);
- fflush (stderr);
/* Sometimes strerror_r() crashes too, so make sure we print an error
* message before we invoke it */
#ifdef __GLIBC__
/* Avoid the strerror_r() prototype brain damage in glibc */
errno = error;
- dprintf (2, " Error message: %m at:\n");
+ fprintf (stderr, " Error message: %m at:\n");
#else
char buf[1000];
const char *msg;
@@ -126,8 +125,8 @@ void vlc_pthread_fatal (const char *action, int error,
break;
}
fprintf (stderr, " Error message: %s\n", msg);
- fflush (stderr);
#endif
+ fflush (stderr);
#ifdef HAVE_BACKTRACE
void *stack[20];
More information about the vlc-devel
mailing list