From 6b9e58c9e46c327bdc9a3db2fe32c27898fd3039 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Fri, 9 Jan 2004 18:05:57 +0000 Subject: ext/ffmpeg/gstffmpegcolorspace.c: Implementing gst_pad_alloc_buffer to use optimized buffer allocation. Original commit message from CVS: * ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain): Implementing gst_pad_alloc_buffer to use optimized buffer allocation. * gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_got_desired_size): Updating doc for the xid being 0. * gst/videoscale/gstvideoscale.c: (gst_videoscale_chain): Implementing gst_pad_alloc_buffer to use optimized buffer allocation. * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_get): Implementing gst_pad_alloc_buffer to use optimized buffer allocation. * sys/ximage/ximagesink.c: (gst_ximagesink_chain), (gst_ximagesink_buffer_free), (gst_ximagesink_buffer_alloc), (gst_ximagesink_set_xwindow_id), (gst_ximagesink_init): Implementing the bufferalloc_function to replace bufferpools, fixing the XOverlay interface implementation to handle xid being 0 and fix some bugs triggered by Benjamin's testcase. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain), (gst_xvimagesink_buffer_free), (gst_xvimagesink_buffer_alloc), (gst_xvimagesink_set_xwindow_id), (gst_xvimagesink_init): Implementing the bufferalloc_function to replace bufferpools, fixing the XOverlay interface implementation to handle xid being 0 and fix some bugs triggered by Benjamin's testcase. --- gst-libs/gst/xoverlay/xoverlay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst-libs/gst/xoverlay') diff --git a/gst-libs/gst/xoverlay/xoverlay.c b/gst-libs/gst/xoverlay/xoverlay.c index c0bbcec0..2efe2966 100644 --- a/gst-libs/gst/xoverlay/xoverlay.c +++ b/gst-libs/gst/xoverlay/xoverlay.c @@ -103,7 +103,8 @@ gst_x_overlay_base_init (gpointer g_class) * * This will call the video overlay's set_xwindow_id method. You should * use this method to tell to a XOverlay to display video output to a - * specific XWindow. + * specific XWindow. Passing 0 as the xwindow_id will tell the overlay to + * stop using that window and create an internal one. */ void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id) @@ -182,4 +183,3 @@ gst_x_overlay_got_desired_size (GstXOverlay *overlay, guint width, guint height) g_signal_emit (G_OBJECT (overlay), gst_x_overlay_signals[DESIRED_SIZE], 0, width, height); } - -- cgit v1.2.1