Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_getcaps), (gst_ffmpegcsp_configure_context),
(gst_ffmpegcsp_setcaps), (gst_ffmpegcsp_bufferalloc),
(gst_ffmpegcsp_chain):
Enable buffer alloc passthrough if the source and dest
formats are the same.
+2005-05-18 Wim Taymans <wim@fluendo.com>
+
+ * gst/ffmpegcolorspace/gstffmpegcolorspace.c:
+ (gst_ffmpegcsp_getcaps), (gst_ffmpegcsp_configure_context),
+ (gst_ffmpegcsp_setcaps), (gst_ffmpegcsp_bufferalloc),
+ (gst_ffmpegcsp_chain):
+ Enable buffer alloc passthrough if the source and dest
+ formats are the same.
+
2005-05-17 Wim Taymans <wim@fluendo.com>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_internal_chain),
space = GST_FFMPEGCSP (GST_PAD_PARENT (pad));
- buf = gst_pad_alloc_buffer (space->srcpad, offset, size, caps);
+ if ((space->from_pixfmt == space->to_pixfmt) &&
+ space->from_pixfmt != PIX_FMT_NB) {
+ buf = gst_pad_alloc_buffer (space->srcpad, offset, size, caps);
+ } else {
+ buf = NULL;
+ }
return buf;
}
GST_STREAM_LOCK (pad);
+ GST_DEBUG ("from %d -> to %d", space->from_pixfmt, space->to_pixfmt);
if (space->from_pixfmt == PIX_FMT_NB || space->to_pixfmt == PIX_FMT_NB)
goto unkown_format;