ext/ffmpeg/gstffmpegenc.c: Fix pad_link function to handle formats that ffmpeg returns as multiple caps structures.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_connect):
Fix pad_link function to handle formats that ffmpeg returns
as multiple caps structures.
* gst/videofilter/gstvideofilter.c: (gst_videofilter_chain):
Only complain if source buffer is _smaller_ than expected.
* gst/videoscale/gstvideoscale.c: (gst_videoscale_init),
(gst_videoscale_handle_src_event): Resize navigation events
when passing them upstream.
* gst/videotestsrc/gstvideotestsrc.c:
* gst/videotestsrc/gstvideotestsrc.h:
* gst/videotestsrc/videotestsrc.c:
* gst/videotestsrc/videotestsrc.h:
Rewrite many of the buffer painting functions to handle odd
sizes (for many formats, size%4!=0 or size%8!=0).  Most have
been verified to work with my video card.
* testsuite/gst-lint:  Add check for elements calling
gst_pad_get_caps() instead of gst_pad_get_allowed_caps().
This commit is contained in:
David Schleef 2004-01-09 01:53:31 +00:00
parent 0a840a323f
commit 756480d6d5
2 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,23 @@
2004-01-08 David Schleef <ds@schleef.org>
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_connect):
Fix pad_link function to handle formats that ffmpeg returns
as multiple caps structures.
* gst/videofilter/gstvideofilter.c: (gst_videofilter_chain):
Only complain if source buffer is _smaller_ than expected.
* gst/videoscale/gstvideoscale.c: (gst_videoscale_init),
(gst_videoscale_handle_src_event): Resize navigation events
when passing them upstream.
* gst/videotestsrc/gstvideotestsrc.c:
* gst/videotestsrc/gstvideotestsrc.h:
* gst/videotestsrc/videotestsrc.c:
* gst/videotestsrc/videotestsrc.h:
Rewrite many of the buffer painting functions to handle odd
sizes (for many formats, size%4!=0 or size%8!=0). Most have
been verified to work with my video card.
* testsuite/gst-lint: Add check for elements calling
gst_pad_get_caps() instead of gst_pad_get_allowed_caps().
2004-01-08 David Schleef <ds@schleef.org> 2004-01-08 David Schleef <ds@schleef.org>
* gst/videodrop/gstvideodrop.c: (gst_videodrop_getcaps), * gst/videodrop/gstvideodrop.c: (gst_videodrop_getcaps),

View file

@ -322,7 +322,12 @@ gst_videofilter_chain (GstPad *pad, GstData *_data)
size, videofilter->from_buf_size, size, videofilter->from_buf_size,
videofilter->to_buf_size); videofilter->to_buf_size);
g_return_if_fail (size == videofilter->from_buf_size); g_return_if_fail (size >= videofilter->from_buf_size);
if (size > videofilter->from_buf_size) {
GST_INFO("buffer size %ld larger than expected (%d)",
size, videofilter->from_buf_size);
}
outbuf = gst_buffer_new(); outbuf = gst_buffer_new();
/* FIXME: handle bufferpools */ /* FIXME: handle bufferpools */