summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@nokia.com>2010-03-05 17:28:04 +0200
committerFelipe Contreras <felipe.contreras@nokia.com>2010-03-08 21:13:16 +0200
commitfdd41059e73a9bbdd4b0f93219ba54097acd6c5b (patch)
tree6fc84fb5cd0fcf265215808515001ed9c8001a7d
parent58d04c3dd04274cb81f1e42db2b30ae76acdf437 (diff)
base: remove extra code
As suggested by Rob Clark. Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
-rw-r--r--omx/gstomx_base_filter.c8
-rw-r--r--omx/gstomx_base_sink.c8
-rw-r--r--omx/gstomx_base_src.c8
3 files changed, 6 insertions, 18 deletions
diff --git a/omx/gstomx_base_filter.c b/omx/gstomx_base_filter.c
index da41b4d..a85396d 100644
--- a/omx/gstomx_base_filter.c
+++ b/omx/gstomx_base_filter.c
@@ -886,12 +886,8 @@ type_instance_init (GTypeInstance *instance,
self->use_timestamps = TRUE;
- /* GOmx */
- {
- GOmxCore *gomx;
- self->gomx = gomx = g_omx_core_new (self);
- gstomx_get_component_info (gomx, G_TYPE_FROM_CLASS (g_class));
- }
+ self->gomx = g_omx_core_new (self);
+ gstomx_get_component_info (self->gomx, G_TYPE_FROM_CLASS (g_class));
self->ready_lock = g_mutex_new ();
diff --git a/omx/gstomx_base_sink.c b/omx/gstomx_base_sink.c
index 68c7ea7..79bcd26 100644
--- a/omx/gstomx_base_sink.c
+++ b/omx/gstomx_base_sink.c
@@ -430,12 +430,8 @@ type_instance_init (GTypeInstance *instance,
GST_LOG_OBJECT (self, "begin");
- /* GOmx */
- {
- GOmxCore *gomx;
- self->gomx = gomx = g_omx_core_new (self);
- gstomx_get_component_info (gomx, G_TYPE_FROM_CLASS (g_class));
- }
+ self->gomx = g_omx_core_new (self);
+ gstomx_get_component_info (self->gomx, G_TYPE_FROM_CLASS (g_class));
{
GstPad *sinkpad;
diff --git a/omx/gstomx_base_src.c b/omx/gstomx_base_src.c
index bae9f55..a4facb5 100644
--- a/omx/gstomx_base_src.c
+++ b/omx/gstomx_base_src.c
@@ -416,12 +416,8 @@ type_instance_init (GTypeInstance *instance,
GST_LOG_OBJECT (self, "begin");
- /* GOmx */
- {
- GOmxCore *gomx;
- self->gomx = gomx = g_omx_core_new (self);
- gstomx_get_component_info (gomx, G_TYPE_FROM_CLASS (g_class));
- }
+ self->gomx = g_omx_core_new (self);
+ gstomx_get_component_info (self->gomx, G_TYPE_FROM_CLASS (g_class));
GST_LOG_OBJECT (self, "end");
}