diff options
author | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:18 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2003-10-08 16:08:18 +0000 |
commit | f2d5cae8daade402e9d74a829d2b87283167aaa7 (patch) | |
tree | cbb13b82d43fa41ffaf6c93973e80c2f620ebf8e /ext/pango/gsttextoverlay.c | |
parent | 9246e543319c072c52fffa51259a2cf927c8dd43 (diff) |
/GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Original commit message from CVS:
/GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Diffstat (limited to 'ext/pango/gsttextoverlay.c')
-rw-r--r-- | ext/pango/gsttextoverlay.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c index 304dcdd2..726d3799 100644 --- a/ext/pango/gsttextoverlay.c +++ b/ext/pango/gsttextoverlay.c @@ -324,8 +324,9 @@ gst_text_overlay_blit_yuv420(GstTextOverlay *overlay, FT_Bitmap *bitmap, static void -gst_textoverlay_video_chain(GstPad *pad, GstBuffer *buf) +gst_textoverlay_video_chain(GstPad *pad, GstData *_data) { + GstBuffer *buf = GST_BUFFER (_data); GstTextOverlay *overlay; guchar *pixbuf; gint x0, y0; @@ -368,7 +369,7 @@ gst_textoverlay_video_chain(GstPad *pad, GstBuffer *buf) if (overlay->bitmap.buffer) gst_text_overlay_blit_yuv420(overlay, &overlay->bitmap, pixbuf, x0, y0); - gst_pad_push(overlay->srcpad, buf); + gst_pad_push(overlay->srcpad, GST_DATA (buf)); } #define PAST_END(buffer, time) \ @@ -388,7 +389,7 @@ gst_textoverlay_loop(GstElement *element) g_return_if_fail(GST_IS_TEXTOVERLAY(element)); overlay = GST_TEXTOVERLAY(element); - video_frame = gst_pad_pull(overlay->video_sinkpad); + video_frame = GST_BUFFER (gst_pad_pull(overlay->video_sinkpad)); now = GST_BUFFER_TIMESTAMP(video_frame); /* @@ -409,7 +410,7 @@ gst_textoverlay_loop(GstElement *element) if(!GST_PAD_IS_USABLE(overlay->text_sinkpad)){ break; } - overlay->next_buffer = gst_pad_pull(overlay->text_sinkpad); + overlay->next_buffer = GST_BUFFER (gst_pad_pull(overlay->text_sinkpad)); if (!overlay->next_buffer) break; @@ -458,7 +459,7 @@ gst_textoverlay_loop(GstElement *element) overlay->need_render = FALSE; } - gst_textoverlay_video_chain(overlay->srcpad, video_frame); + gst_textoverlay_video_chain(overlay->srcpad, GST_DATA (video_frame)); } |