configure.ac: scale requires -libs (video.h).

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.
This commit is contained in:
Ronald S. Bultje 2005-06-03 11:34:13 +00:00
parent 97fd0430f1
commit 722d9491dd
3 changed files with 11 additions and 1 deletions

View file

@ -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):

View 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

View 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);