felipec gst-openmax: gst-openmax/omx/
[email protected] Mon, 8 Dec 2008 13:08:55 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVS Root: /cvs/gstreamer
Module: gst-openmax
Changes by: felipec
Date: Mon Dec 08 2008 21:08:55 UTC
Log message:
Allow child classes to override the share_input_buffer workaround.
Some components require specific buffer sizes.
Modified files:
omx : gstomx_base_filter.c gstomx_base_filter.h
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_filter.c.diff?r1=1.68&r2=1.69
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_filter.h.diff?r1=1.17&r2=1.18
====Begin Diffs====
Index: gstomx_base_filter.c
===================================================================
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_filter.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- gstomx_base_filter.c 20 Nov 2008 17:16:28 -0000 1.68
+++ gstomx_base_filter.c 8 Dec 2008 21:08:38 -0000 1.69
@@ -26,8 +26,6 @@
#include <stdlib.h> /* For calloc, free */
#include <string.h> /* For memcpy */
-static gboolean share_input_buffer = FALSE;
-
enum
{
ARG_0,
@@ -533,7 +531,7 @@
omx_buffer->nOffset, omx_buffer->nTimeStamp);
if (omx_buffer->nOffset == 0 &&
- share_input_buffer)
+ self->share_input_buffer)
{
{
GstBuffer *old_buf;
@@ -587,7 +585,7 @@
ret = GST_FLOW_UNEXPECTED;
}
- if (!share_input_buffer)
+ if (!self->share_input_buffer)
{
gst_buffer_unref (buf);
Index: gstomx_base_filter.h
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_filter.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- gstomx_base_filter.h 20 Nov 2008 16:42:07 -0000 1.17
+++ gstomx_base_filter.h 8 Dec 2008 21:08:41 -0000 1.18
@@ -57,6 +57,7 @@
GstFlowReturn last_pad_push_return;
GstBuffer *codec_data;
+ gboolean share_input_buffer;
gboolean share_output_buffer; /** @todo this is hack, OpenMAX IL spec should be revised. */
};
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/