mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
sys/: Making both of them use the buffer free function to test how the buffer was allocated.
Original commit message from CVS: 2004-01-15 Julien MOUTTE <julien@moutte.net> * sys/ximage/ximagesink.c: (gst_ximagesink_chain): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain): Making both of them use the buffer free function to test how the buffer was allocated.
This commit is contained in:
parent
89303c580f
commit
65a306f052
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-01-15 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_chain):
|
||||
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain): Making both of
|
||||
them use the buffer free function to test how the buffer was allocated.
|
||||
|
||||
2004-01-15 David Schleef <ds@schleef.org>
|
||||
|
||||
* ext/esd/esdsink.c: (gst_esdsink_class_init): Remove property
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
/* Object header */
|
||||
#include "ximagesink.h"
|
||||
|
||||
static void gst_ximagesink_buffer_free (GstBuffer *buffer);
|
||||
|
||||
/* ElementFactory information */
|
||||
static GstElementDetails gst_ximagesink_details = GST_ELEMENT_DETAILS (
|
||||
"Video sink",
|
||||
|
@ -729,7 +731,7 @@ gst_ximagesink_chain (GstPad *pad, GstData *data)
|
|||
|
||||
/* If this buffer has been allocated using our buffer management we simply
|
||||
put the ximage which is in the PRIVATE pointer */
|
||||
if (GST_BUFFER_PRIVATE (buf))
|
||||
if (GST_BUFFER_FREE_DATA_FUNC (buf) == gst_ximagesink_buffer_free)
|
||||
{
|
||||
gst_ximagesink_ximage_put (ximagesink, GST_BUFFER_PRIVATE (buf));
|
||||
}
|
||||
|
|
|
@ -941,7 +941,6 @@ gst_xvimagesink_chain (GstPad *pad, GstData *data)
|
|||
|
||||
/* If this buffer has been allocated using our buffer management we simply
|
||||
put the ximage which is in the PRIVATE pointer */
|
||||
/* FIXME: need to check for correct xvimagesink here? */
|
||||
if (GST_BUFFER_FREE_DATA_FUNC (buf) == gst_xvimagesink_buffer_free)
|
||||
{
|
||||
gst_xvimagesink_xvimage_put (xvimagesink, GST_BUFFER_PRIVATE (buf));
|
||||
|
|
Loading…
Reference in a new issue