diff options
Diffstat (limited to 'ext/gdk_pixbuf')
-rw-r--r-- | ext/gdk_pixbuf/gstgdkpixbuf.c | 5 | ||||
-rw-r--r-- | ext/gdk_pixbuf/pixbufscale.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c index 9a602ea8..34a1678e 100644 --- a/ext/gdk_pixbuf/gstgdkpixbuf.c +++ b/ext/gdk_pixbuf/gstgdkpixbuf.c @@ -329,8 +329,9 @@ gst_gdk_pixbuf_chain (GstPad * pad, GstData * _data) gst_pad_set_explicit_caps (filter->srcpad, caps); } - outbuf = gst_pad_alloc_buffer (filter->srcpad, GST_BUFFER_OFFSET_NONE, - filter->image_size); + outbuf = + gst_pad_alloc_buffer_and_set_caps (filter->srcpad, + GST_BUFFER_OFFSET_NONE, filter->image_size); GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf); GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buf); diff --git a/ext/gdk_pixbuf/pixbufscale.c b/ext/gdk_pixbuf/pixbufscale.c index 9edef400..6b52b426 100644 --- a/ext/gdk_pixbuf/pixbufscale.c +++ b/ext/gdk_pixbuf/pixbufscale.c @@ -409,7 +409,7 @@ gst_pixbufscale_chain (GstPad * pad, GstData * _data) return; } - outbuf = gst_pad_alloc_buffer (pixbufscale->srcpad, + outbuf = gst_pad_alloc_buffer_and_set_caps (pixbufscale->srcpad, GST_BUFFER_OFFSET_NONE, pixbufscale->to_buf_size); gst_buffer_stamp (outbuf, buf); |