-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all

current svn/trunk failed to compile due to undefined types pp_context_t
and pp_mode_t in lib/video_ffmpeg.c

i had a look and indeed on my debian/sid box (which uses libav, rather
than ffmpeg), the file libpostproc/postprocess.h contained types named
"pp_context" and "pp_mode".

hmm...

i therefore added some type-checks to m4/check_funcs.m4 and applied the
result in lib/video_ffmpeg.c.

this allows recent gmerlin-avdec to build on my machine.

hope it can get included (or fixed otherwise)

fgmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6lxUMACgkQkX2Xpv6ydvQ8hwCg9Wg+t8O36UYW2Sem8XSl9uUe
7bwAnA/pRpxeVeIDMk8d35x+9x56zC8W
=XYwE
-----END PGP SIGNATURE-----
Index: m4/check_funcs.m4
===================================================================
--- m4/check_funcs.m4   (Revision 2827)
+++ m4/check_funcs.m4   (Arbeitskopie)
@@ -130,6 +130,13 @@
 
 if test $found_header = "false"; then
 have_libpostproc=false
+else
+CFLAGS="-DPOSTPROC_HEADER=$POSTPROC_HEADER $CFLAGS"
+AC_CHECK_TYPES([pp_context_t, pp_context, pp_mode_t, pp_mode], [], [], [[
+#ifdef POSTPROC_HEADER
+#include POSTPROC_HEADER
+#endif
+]])
 fi
 
 CFLAGS="$CFLAGS_save"
Index: lib/video_ffmpeg.c
===================================================================
--- lib/video_ffmpeg.c  (Revision 2827)
+++ lib/video_ffmpeg.c  (Arbeitskopie)
@@ -48,6 +48,14 @@
 
 #ifdef HAVE_LIBPOSTPROC
 #include POSTPROC_HEADER
+
+# if (defined HAVE_PP_CONTEXT) && (!defined HAVE_PP_CONTEXT_T)
+#  define pp_context_t pp_context
+# endif
+# if (defined HAVE_PP_MODE) && (!defined HAVE_PP_MODE_T)
+#  define pp_mode_t pp_mode
+# endif
+
 #endif
 
 #ifdef HAVE_LIBSWSCALE

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general

Reply via email to