CVS Root: /cvs/gstreamer
Module: gst-openmax
Changes by: felipec
Date: Thu Nov 20 2008 16:08:01 UTC
Log message:
Improve flushing in base_filter.
Modified files:
omx : gstomx_base_filter.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-openmax/omx/gstomx_base_filter.c.diff?r1=1.54&r2=1.55
====Begin Diffs====
Index: gstomx_base_filter.c
===================================================================
RCS file: /cvs/gstreamer/gst-openmax/omx/gstomx_base_filter.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- gstomx_base_filter.c 15 Aug 2008 15:11:57 -0000 1.54
+++ gstomx_base_filter.c 20 Nov 2008 16:07:47 -0000 1.55
@@ -655,15 +655,10 @@
break;
case GST_EVENT_FLUSH_START:
- /* unlock loops */
- g_omx_port_pause (in_port);
- g_omx_port_pause (out_port);
+ g_omx_core_flush_start (gomx);
gst_pad_pause_task (self->srcpad);
- /* flush all buffers */
- OMX_SendCommand (gomx->omx_handle, OMX_CommandFlush, OMX_ALL, NULL);
-
ret = gst_pad_push_event (self->srcpad, event);
@@ -671,13 +666,10 @@
self->last_pad_push_return = GST_FLOW_OK;
- g_omx_sem_down (gomx->flush_sem);
+ g_omx_core_flush_stop (gomx);
gst_pad_start_task (self->srcpad, output_loop, self->srcpad);
- g_omx_port_resume (in_port);
- g_omx_port_resume (out_port);
case GST_EVENT_NEWSEGMENT:
-------------------------------------------------------------------------
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.