configure.ac: scale requires -libs (video.h).
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 3 Jun 2005 11:34:13 +0000 (11:34 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 3 Jun 2005 11:34:13 +0000 (11:34 +0000)
Original commit message from CVS:
* configure.ac:
scale requires -libs (video.h).
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps):
Don't crash if open failed.

ChangeLog
configure.ac
ext/ffmpeg/gstffmpegenc.c

index 8f2e154..27ee682 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-03  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * configure.ac:
+         scale requires -libs (video.h).
+       * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps):
+         Don't crash if open failed.
+
 2005-05-24  Luca Ognibene  <luogni@tin.it>
 
        * ext/ffmpeg/gstffmpegdeinterlace.c (gst_ffmpegdeinterlace_chain): 
index 9ff07fa..ea31ad5 100644 (file)
@@ -61,7 +61,8 @@ AC_HEADER_STDC([])
 
 
 dnl check for gstreamer; uninstalled is selected preferentially -- see pkg-config(1)
-PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ,
+PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ \
+                      gstreamer-libs-$GST_MAJORMINOR,
   HAVE_GST="yes", HAVE_GST="no")
                                                                                 
 if test "x$HAVE_GST" = "xno"; then
index ca11423..0461c9f 100644 (file)
@@ -333,6 +333,8 @@ gst_ffmpegenc_getcaps (GstPad * pad)
           gst_ffmpeg_codectype_to_caps (oclass->in_plugin->type, ctx));
       avcodec_close (ctx);
     }
+    if (ctx->priv_data)
+      avcodec_close (ctx);
   }
   av_free (ctx);