emotion/generic: Small fixes.
authorantognolli <antognolli>
Tue, 6 Sep 2011 21:15:42 +0000 (21:15 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 6 Sep 2011 21:15:42 +0000 (21:15 +0000)
Update enum doc, and return 1 on success for getting shm_data.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63235 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/generic/Emotion_Generic_Plugin.h

index cb0a399..9fc987f 100644 (file)
@@ -41,7 +41,7 @@ enum _Emotion_Generic_Result
 {
    EM_RESULT_INIT, // param: none
    EM_RESULT_FILE_SET, // param: none
-   EM_RESULT_FILE_SET_DONE, // param: none
+   EM_RESULT_FILE_SET_DONE, // param: success (int)
    EM_RESULT_PLAYBACK_STOPPED, // param: none
    EM_RESULT_FILE_CLOSE, // param: none
    EM_RESULT_FRAME_NEW, // param: none
@@ -129,6 +129,8 @@ emotion_generic_shm_get(const char *shmname, Emotion_Generic_Video_Shared **vs,
    vf->frames[2] = (unsigned char *)t_vs + sizeof(*t_vs) + 2 * t_vs->height * t_vs->width * t_vs->pitch;
 
    *vs = t_vs;
+
+   return 1;
 }
 
 inline void