fix ffmpeg to work with installd version as well
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 26 Nov 2002 14:50:05 +0000 (14:50 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 26 Nov 2002 14:50:05 +0000 (14:50 +0000)
Original commit message from CVS:
fix ffmpeg to work with installd version as well

common
ext/ffmpeg/Makefile.am
ext/ffmpeg/gstffmpeg.c
ext/ffmpeg/gstffmpegcodecmap.c
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegdemux.c
ext/ffmpeg/gstffmpegenc.c
ext/ffmpeg/gstffmpegmux.c
ext/ffmpeg/gstffmpegprotocol.c

diff --git a/common b/common
index 1ca7d9a..f2d9b99 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 1ca7d9a20180cab830f4383cde5ba932338e50b1
+Subproject commit f2d9b99515c73da09bfe307d273d320f79a226da
index 133d3a3..0f3af94 100644 (file)
@@ -11,8 +11,8 @@ libgstffmpeg_la_SOURCES = gstffmpeg.c                 \
                          gstffmpegprotocol.c   \
                          gstffmpegtypes.c      
 
-libgstffmpeg_la_CFLAGS = $(GST_CFLAGS) -I/opt/src/sourceforge/ffmpeg/ -I/opt/src/sourceforge/ffmpeg/libavcodec/
+libgstffmpeg_la_CFLAGS = $(GST_CFLAGS) $(FFMPEG_CFLAGS)
 libgstffmpeg_la_LIBADD = 
-libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -L/opt/src/sourceforge/ffmpeg/libavcodec -lavcodec -L/opt/src/sourceforge/ffmpeg/libav -lavformat
+libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(FFMPEG_LIBS)
 
 noinst_HEADERS = 
index e9d04ec..af1acfa 100644 (file)
  * object definition and other useful things.
  */
 
-#include <libavcodec/avcodec.h>
-#include <libav/avformat.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avcodec.h>
+#include <avformat.h>
+#else
+#include <ffmpeg/avcodec.h>
+#include <ffmpeg/avformat.h>
+#endif
 
 #include <gst/gst.h>
 
index 13add65..1654379 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#include <libavcodec/avcodec.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avcodec.h>
+#else
+#include <ffmpeg/avcodec.h>
+#endif
+
 #include <gst/gst.h>
 
 GstCaps *
index 46b499d..97e05d0 100644 (file)
 
 #include <assert.h>
 #include <string.h>
-#include <libavcodec/avcodec.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avcodec.h>
+#else
+#include <ffmpeg/avcodec.h>
+#endif
 
 #include <gst/gst.h>
 
index 6a620a9..89b5196 100644 (file)
  */
 
 #include <string.h>
-#include <libav/avformat.h>
-#include <libav/avi.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avformat.h>
+#include <avi.h>
+#else
+#include <ffmpeg/avformat.h>
+#include <ffmpeg/avi.h>
+#endif
 
 #include <gst/gst.h>
 
index fdf8265..15692ed 100644 (file)
 
 #include <string.h>
 #include <assert.h>
-#include <libavcodec/avcodec.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avcodec.h>
+#else
+#include <ffmpeg/avcodec.h>
+#endif
 
 #include <gst/gst.h>
 
index 849720a..7737781 100644 (file)
  */
 
 #include <string.h>
-#include <libav/avformat.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avformat.h>
+#else
+#include <ffmpeg/avformat.h>
+#endif
 
 #include <gst/gst.h>
-       
+
 typedef struct _GstFFMpegMux GstFFMpegMux;
 
 struct _GstFFMpegMux {
index 9d9cdb4..edfa4a4 100644 (file)
 
 #include <string.h>
 #include <errno.h>
-#include <libav/avformat.h>
+#include "config.h"
+#ifdef HAVE_FFMPEG_UNINSTALLED
+#include <avformat.h>
+#else
+#include <ffmpeg/avformat.h>
+#endif
+
 #include <gst/gst.h>
 #include <gst/bytestream/bytestream.h>