summaryrefslogtreecommitdiffstats
path: root/gst/goom
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-06-02 10:03:23 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-06-02 10:03:23 +0000
commit9cc325828029d5d746c1d13a0ea729900a7d3ef4 (patch)
tree725570e3cfc118541b3526ee7d2c690c5d6b6fa5 /gst/goom
parenta5d8b514c5895a5b72336545ce0b0dacd460ad9e (diff)
gst/: Bufferalloc changes.
Original commit message from CVS: * gst/effectv/gstquark.c: (gst_quarktv_chain): * gst/goom/gstgoom.c: (gst_goom_chain): * gst/videobox/Makefile.am: * gst/videobox/gstvideobox.c: (gst_video_box_class_init), (gst_video_box_init), (gst_video_box_sink_setcaps), (gst_video_box_chain): * gst/videofilter/gstvideofilter.c: (gst_videofilter_chain): * gst/videorate/gstvideorate.c: (gst_videorate_class_init), (gst_videorate_getcaps), (gst_videorate_setcaps), (gst_videorate_init), (gst_videorate_event), (gst_videorate_chain), (gst_videorate_change_state): Bufferalloc changes.
Diffstat (limited to 'gst/goom')
-rw-r--r--gst/goom/gstgoom.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index cf5b86f1..8b5c49e3 100644
--- a/gst/goom/gstgoom.c
+++ b/gst/goom/gstgoom.c
@@ -391,8 +391,11 @@ gst_goom_chain (GstPad * pad, GstBuffer * bufin)
}
}
- bufout = gst_pad_alloc_buffer (goom->srcpad, GST_BUFFER_OFFSET_NONE,
- goom->width * goom->height * 4, GST_PAD_CAPS (goom->srcpad));
+ ret = gst_pad_alloc_buffer (goom->srcpad, GST_BUFFER_OFFSET_NONE,
+ goom->width * goom->height * 4, GST_PAD_CAPS (goom->srcpad), &bufout);
+ if (ret != GST_FLOW_OK)
+ break;
+
GST_BUFFER_TIMESTAMP (bufout) =
goom->audio_basetime +
(GST_SECOND * goom->samples_consumed / goom->sample_rate);