]> git.sesse.net Git - vlc/commitdiff
Merge branch 'master' of git.videolan.org:vlc
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jul 2010 16:16:32 +0000 (18:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jul 2010 16:16:32 +0000 (18:16 +0200)
Makefile.am
configure.ac
include/vlc_vout_window.h
modules/misc/svg.c
src/video_output/window.c

index d3ec3fe5a9a50b98f4b65a0a47da9bb8921cb464..8cd2199f14fb0598713f1b4e25a496aa49d30880 100644 (file)
@@ -103,7 +103,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
 
 ACLOCAL_AMFLAGS = -I m4
 AUTOMAKE_OPTIONS = \
-       1.9 \
+       1.11 \
        -Wall \
        check-news \
        dist-bzip2 \
index 8a8701ea7ae5620a7132685e982418aa12edb963..c36a7ae2fb47265d468fb44c6ea0a9c6c95cf3f0 100644 (file)
@@ -14,7 +14,6 @@ CONFIGURE_LINE="`echo "$0 $ac_configure_args" | sed -e 's/\\\/\\\\\\\/g'`"
 CODENAME="Twoflower"
 COPYRIGHT_YEARS="1996-2010"
 
-AC_PREREQ(2.59c)
 AC_CONFIG_SRCDIR(src/libvlc.c)
 AC_CONFIG_AUX_DIR(autotools)
 AC_CONFIG_MACRO_DIR(m4)
@@ -27,13 +26,7 @@ AM_INIT_AUTOMAKE(tar-ustar)
 AM_CONFIG_HEADER(config.h)
 
 # Disable with "./configure --disable-silent-rules" or "make V=1"
-m4_ifdef([AM_SILENT_RULES], [
-  AM_SILENT_RULES([yes])
-], [
-  AM_DEFAULT_VERBOSITY=1
-  AC_SUBST(AM_DEFAULT_VERBOSITY)
-])
-
+AM_SILENT_RULES([yes])
 
 dnl Too many people are not aware of maintainer mode:
 dnl If you want to use it, you definitely know what you are doing, so
@@ -2633,8 +2626,7 @@ dnl  avcodec decoder/encoder plugin
 dnl
 AC_ARG_ENABLE(avcodec,
 [  --enable-avcodec        libavcodec codec (default enabled)])
-if test "${enable_avcodec}" != "no"
-then
+AS_IF([test "${enable_avcodec}" != "no"], [
   PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 52.25.0 libavutil],
     [
       VLC_SAVE_FLAGS
@@ -2650,7 +2642,9 @@ then
     ],[
       AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.])
   ])
-fi
+], [
+  have_avcodec="no"
+])
 
 dnl
 dnl libva needs avcodec
@@ -2742,7 +2736,9 @@ dnl  avformat demuxer/muxer plugin
 dnl
 
 AC_ARG_ENABLE(avformat,
-[  --enable-avformat       libavformat containers (default enabled)])
+[  --enable-avformat       libavformat containers (default enabled)],, [
+  enable_avformat="${have_avcodec}"
+])
 if test "${enable_avformat}" != "no"
 then
   PKG_CHECK_MODULES(AVFORMAT,[libavformat > 52.30.0 libavutil],
index 84d78eebcf3841ccc5f0b8913d34a303d36ca256..3d7e92966bfa7b430578542eaff498b7d839dfa6 100644 (file)
@@ -43,6 +43,7 @@ typedef struct vout_window_sys_t vout_window_sys_t;
 enum {
     VOUT_WINDOW_TYPE_XID,
     VOUT_WINDOW_TYPE_HWND,
+    VOUT_WINDOW_TYPE_NSOBJECT,
 };
 
 /**
@@ -88,8 +89,9 @@ struct vout_window_t {
      * It must be filled in the open function.
      */
     union {
-        void     *hwnd;   /* Win32 window handle */
-        uint32_t xid;     /* X11 windows ID */
+        void     *hwnd;     /* Win32 window handle */
+        uint32_t xid;       /* X11 windows ID */
+        void     *nsobject; /* Mac OSX view object */
     } handle;
 
     /* display server (mandatory) */
index 7c5ad64b8912b575280e0413673cea83d72c4e09..fc54819134f47070b1b111dd5fa82b25c9ca2632 100644 (file)
@@ -48,7 +48,7 @@
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <glib-object.h>                                  /* g_object_unref( ) */
-#include <librsvg-2/librsvg/rsvg.h>
+#include <librsvg/rsvg.h>
 
 typedef struct svg_rendition_t svg_rendition_t;
 
index a8ef7976076f7d2dcf94f2cf232354dc60e47f7d..d79a4e21eb412869169dfed7e437b9d9e6671e04 100644 (file)
@@ -63,6 +63,12 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
         type = "vout window hwnd";
         window->handle.hwnd = NULL;
         break;
+#endif
+#ifdef __APPLE__
+    case VOUT_WINDOW_TYPE_NSOBJECT:
+        type = "vout window nsobject";
+        window->handle.nsobject = NULL;
+        break;
 #endif
     case VOUT_WINDOW_TYPE_XID:
         type = "vout window xid";