felipec gst-openmax: gst-openmax/omx/

[email protected]
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-openmax
Changes by:     felipec
Date:           Thu Nov 20 2008  16:10:03 UTC

Log message:
More general improvements in flushing.

Modified files:
    omx             : gstomx_base_filter.c gstomx_util.c gstomx_util.h

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_filter.c.diff?r1=1.55&r2=1.56
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_util.c.diff?r1=1.40&r2=1.41
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_util.h.diff?r1=1.23&r2=1.24

====Begin Diffs====
Index: gstomx_base_filter.c
===================================================================
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_filter.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- gstomx_base_filter.c	20 Nov 2008 16:07:47 -0000	1.55
+++ gstomx_base_filter.c	20 Nov 2008 16:09:48 -0000	1.56
@@ -659,6 +659,8 @@
 
             gst_pad_pause_task (self->srcpad);
+            g_omx_core_flush (gomx);
+
             ret = gst_pad_push_event (self->srcpad, event);
             break;
Index: gstomx_util.c
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_util.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- gstomx_util.c	20 Nov 2008 16:01:20 -0000	1.40
+++ gstomx_util.c	20 Nov 2008 16:09:49 -0000	1.41
@@ -386,18 +386,21 @@
 g_omx_core_flush_start (GOmxCore *core)
 {
     core_for_each_port (core, g_omx_port_pause);
+}
+void
+g_omx_core_flush (GOmxCore *core)
+{
     OMX_SendCommand (core->omx_handle, OMX_CommandFlush, OMX_ALL, NULL);
-    core_for_each_port (core, g_omx_port_flush);
 }
 void
 g_omx_core_flush_stop (GOmxCore *core)
     g_omx_sem_down (core->flush_sem);
+    core_for_each_port (core, g_omx_port_flush);
     core_for_each_port (core, g_omx_port_resume);
-#if 0
     core_for_each_port (core, port_start_buffers);
-#endif
 /*
Index: gstomx_util.h
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_util.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- gstomx_util.h	20 Nov 2008 16:01:20 -0000	1.23
+++ gstomx_util.h	20 Nov 2008 16:09:49 -0000	1.24
@@ -131,6 +131,7 @@
 void g_omx_core_set_done (GOmxCore *core);
 void g_omx_core_wait_for_done (GOmxCore *core);
 void g_omx_core_flush_start (GOmxCore *core);
+void g_omx_core_flush (GOmxCore *core);
 void g_omx_core_flush_stop (GOmxCore *core);
 GOmxPort *g_omx_core_setup_port (GOmxCore *core, OMX_PARAM_PORTDEFINITIONTYPE *omx_port);

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.