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
@ -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>
|
2004-01-15 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* ext/esd/esdsink.c: (gst_esdsink_class_init): Remove property
|
* ext/esd/esdsink.c: (gst_esdsink_class_init): Remove property
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
/* Object header */
|
/* Object header */
|
||||||
#include "ximagesink.h"
|
#include "ximagesink.h"
|
||||||
|
|
||||||
|
static void gst_ximagesink_buffer_free (GstBuffer *buffer);
|
||||||
|
|
||||||
/* ElementFactory information */
|
/* ElementFactory information */
|
||||||
static GstElementDetails gst_ximagesink_details = GST_ELEMENT_DETAILS (
|
static GstElementDetails gst_ximagesink_details = GST_ELEMENT_DETAILS (
|
||||||
"Video sink",
|
"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
|
/* If this buffer has been allocated using our buffer management we simply
|
||||||
put the ximage which is in the PRIVATE pointer */
|
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));
|
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
|
/* If this buffer has been allocated using our buffer management we simply
|
||||||
put the ximage which is in the PRIVATE pointer */
|
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)
|
if (GST_BUFFER_FREE_DATA_FUNC (buf) == gst_xvimagesink_buffer_free)
|
||||||
{
|
{
|
||||||
gst_xvimagesink_xvimage_put (xvimagesink, GST_BUFFER_PRIVATE (buf));
|
gst_xvimagesink_xvimage_put (xvimagesink, GST_BUFFER_PRIVATE (buf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user