[Ffmpeg-cvslog] CVS: ffmpeg ffplay.c, 1.40, 1.41 configure, 1.167, 1.168
Michael Niedermayer CVS
michael
Mon Apr 25 17:13:44 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv5711
Modified Files:
ffplay.c configure
Log Message:
os2.diff by (Paul Smedley // paul smedley info)
Index: ffplay.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffplay.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- ffplay.c 7 Feb 2005 22:06:01 -0000 1.40
+++ ffplay.c 25 Apr 2005 15:13:39 -0000 1.41
@@ -28,6 +28,23 @@
#undef main /* We don't want SDL to override our main() */
#endif
+#ifdef CONFIG_OS2
+#define INCL_DOS
+ #include <os2.h>
+ #include <stdio.h>
+
+ void MorphToPM()
+ {
+ PPIB pib;
+ PTIB tib;
+
+ DosGetInfoBlocks(&tib, &pib);
+
+ // Change flag from VIO to PM:
+ if (pib->pib_ultype==2) pib->pib_ultype = 3;
+ }
+#endif
+
#if defined(__linux__)
#define HAVE_X11
#endif
@@ -1887,6 +1904,14 @@
/* register all codecs, demux and protocols */
av_register_all();
+ #ifdef CONFIG_OS2
+ MorphToPM(); // Morph the VIO application to a PM one to be able to use Win* functions
+
+ // Make stdout and stderr unbuffered
+ setbuf( stdout, NULL );
+ setbuf( stderr, NULL );
+ #endif
+
parse_options(argc, argv, options);
if (!input_filename)
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- configure 9 Apr 2005 15:32:58 -0000 1.167
+++ configure 25 Apr 2005 15:13:39 -0000 1.168
@@ -315,12 +315,12 @@
;;
OS/2)
TMPE=$TMPE".exe"
-ar="emxomfar -p64"
+ar="emxomfar -p128"
ranlib="echo ignoring ranlib"
strip="echo ignoring strip"
CFLAGS="-Zomf"
LDFLAGS="-Zomf -Zstack 16384 -s"
-SHFLAGS=""
+SHFLAGS="-Zdll -Zomf"
FFSLDFLAGS=""
LIBPREF=""
LIBSUF=".lib"
@@ -333,7 +333,9 @@
dv1394="no"
network="no"
ffserver="no"
+vhook="no"
os2="yes"
+
;;
*) ;;
esac
More information about the ffmpeg-cvslog
mailing list