Author: fejj
Date: 2007-09-04 12:25:53 -0400 (Tue, 04 Sep 2007)
New Revision: 85304

Modified:
   trunk/moon/src/mplayer.cpp
Log:
fixed strerror printf for av_open_file

Modified: trunk/moon/src/mplayer.cpp
===================================================================
--- trunk/moon/src/mplayer.cpp  2007-09-04 16:23:20 UTC (rev 85303)
+++ trunk/moon/src/mplayer.cpp  2007-09-04 16:25:53 UTC (rev 85304)
@@ -214,6 +214,7 @@
 {
        AVCodecContext *encoding;
        AVStream *stream;
+       int rv;
        
        Close ();
        
@@ -223,8 +224,8 @@
        if (uri == NULL || *uri == '\0')
                return false;
        
-       if (av_open_input_file (&av_ctx, uri, NULL, 0, NULL) < 0) {
-               fprintf (stderr, "cannot open uri `%s': %s\n", uri, strerror 
(errno));
+       if ((rv = av_open_input_file (&av_ctx, uri, NULL, 0, NULL)) < 0) {
+               fprintf (stderr, "cannot open uri `%s': %s\n", uri, strerror 
(AVERROR (rv)));
                av_ctx = NULL;
                return false;
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to