summaryrefslogtreecommitdiff
path: root/src/modules/emotion/gstreamer/emotion_alloc.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 03:06:42 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 03:06:42 +0000
commit356d4f733cd51ebcc95ad436044aa1fdd4aef6df (patch)
tree68104f9cd4bf1c7edcb6fa096389a688b0f6e7b5 /src/modules/emotion/gstreamer/emotion_alloc.c
parent4c64334b9d801f85dd19a6122db75cc3a1ecab6f (diff)
efl/emotion: rework module infra, better integration with 'generic'.
Change the module infra and allow one to register using the description structure itself, saves some work. Replace module_open and module_close with add() and del(), that are more descriptive. Move stuff to init/shutdown where it was a better fit. Since add() now receives the first parameter being the owning structure we can create one structure per generic player and they will merge transparently with other modules, then we can use a simple algorithm that considers the plugin priority. ALL DYNAMIC! Future work could be done to load the plugin priority specified by user from configuration file. But this is not in my plans right now. SVN revision: 82602
Diffstat (limited to 'src/modules/emotion/gstreamer/emotion_alloc.c')
-rw-r--r--src/modules/emotion/gstreamer/emotion_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/emotion/gstreamer/emotion_alloc.c b/src/modules/emotion/gstreamer/emotion_alloc.c
index b7eecd43ab..c4aae047b7 100644
--- a/src/modules/emotion/gstreamer/emotion_alloc.c
+++ b/src/modules/emotion/gstreamer/emotion_alloc.c
@@ -51,7 +51,7 @@ emotion_gstreamer_buffer_free(Emotion_Gstreamer_Buffer *send)
51 if (send->ev->in == send->ev->out 51 if (send->ev->in == send->ev->out
52 && send->ev->threads == NULL 52 && send->ev->threads == NULL
53 && send->ev->delete_me) 53 && send->ev->delete_me)
54 em_shutdown(send->ev); 54 send->ev->api->del(send->ev);
55 55
56 gst_buffer_unref(send->frame); 56 gst_buffer_unref(send->frame);
57 free(send); 57 free(send);
@@ -83,7 +83,7 @@ emotion_gstreamer_message_free(Emotion_Gstreamer_Message *send)
83 if (send->ev->in == send->ev->out 83 if (send->ev->in == send->ev->out
84 && send->ev->threads == NULL 84 && send->ev->threads == NULL
85 && send->ev->delete_me) 85 && send->ev->delete_me)
86 em_shutdown(send->ev); 86 send->ev->api->del(send->ev);
87 87
88 gst_message_unref(send->msg); 88 gst_message_unref(send->msg);
89 free(send); 89 free(send);