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:
Julien Moutte 2004-01-15 22:03:45 +00:00
parent 89303c580f
commit 65a306f052
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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));
}

View file

@ -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));