davemds pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=902307ccaf938ed016333a1050d4ceae80186a00

commit 902307ccaf938ed016333a1050d4ceae80186a00
Author: davemds <d...@gurumeditation.it>
Date:   Thu Feb 20 22:57:32 2014 +0100

    Emotion Generic: receiving the size on opening is correct.
    
    Also: more comments to simplify command debugging.
---
 .../emotion/generic/Emotion_Generic_Plugin.h       | 32 +++++++++++-----------
 src/modules/emotion/generic/emotion_generic.c      |  3 --
 2 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/src/modules/emotion/generic/Emotion_Generic_Plugin.h 
b/src/modules/emotion/generic/Emotion_Generic_Plugin.h
index 6208731..96b69f6 100644
--- a/src/modules/emotion/generic/Emotion_Generic_Plugin.h
+++ b/src/modules/emotion/generic/Emotion_Generic_Plugin.h
@@ -20,22 +20,22 @@ typedef struct _Emotion_Generic_Video_Shared 
Emotion_Generic_Video_Shared;
 
 enum _Emotion_Generic_Cmd
 {
-   EM_CMD_INIT = 0,        // param: shared memory identifier (string)
-   EM_CMD_PLAY,            // param: position (float)
-   EM_CMD_STOP,            // param: none
-   EM_CMD_FILE_SET,        // param: filename (string)
-   EM_CMD_FILE_SET_DONE,   // param: none
-   EM_CMD_FILE_CLOSE,      // param: none
-   EM_CMD_POSITION_SET,    // param: position (float)
-   EM_CMD_SPEED_SET,       // param: speed (float)
-   EM_CMD_AUDIO_MUTE_SET,  // param: muted (int)
-   EM_CMD_VIDEO_MUTE_SET,  // param: muted (int)
-   EM_CMD_SPU_MUTE_SET,    // param: muted (int)
-   EM_CMD_VOLUME_SET,      // param: volume (float)
-   EM_CMD_AUDIO_TRACK_SET, // param: track id (int)
-   EM_CMD_VIDEO_TRACK_SET, // param: track id (int)
-   EM_CMD_SPU_TRACK_SET,   // param: track id (int)
-   EM_CMD_SUBTITLE_SET,    // param: subtitle filename (string)
+   EM_CMD_INIT = 0,        // 0  param: shared memory identifier (string)
+   EM_CMD_PLAY,            // 1  param: position (float)
+   EM_CMD_STOP,            // 2  param: none
+   EM_CMD_FILE_SET,        // 3  param: filename (string)
+   EM_CMD_FILE_SET_DONE,   // 4  param: none
+   EM_CMD_FILE_CLOSE,      // 5  param: none
+   EM_CMD_POSITION_SET,    // 6  param: position (float)
+   EM_CMD_SPEED_SET,       // 7  param: speed (float)
+   EM_CMD_AUDIO_MUTE_SET,  // 8  param: muted (int)
+   EM_CMD_VIDEO_MUTE_SET,  // 9  param: muted (int)
+   EM_CMD_SPU_MUTE_SET,    // 10 param: muted (int)
+   EM_CMD_VOLUME_SET,      // 11 param: volume (float)
+   EM_CMD_AUDIO_TRACK_SET, // 12 param: track id (int)
+   EM_CMD_VIDEO_TRACK_SET, // 13 param: track id (int)
+   EM_CMD_SPU_TRACK_SET,   // 14 param: track id (int)
+   EM_CMD_SUBTITLE_SET,    // 15 param: subtitle filename (string)
    EM_CMD_LAST
 };
 
diff --git a/src/modules/emotion/generic/emotion_generic.c 
b/src/modules/emotion/generic/emotion_generic.c
index 086af13..c52f087 100644
--- a/src/modules/emotion/generic/emotion_generic.c
+++ b/src/modules/emotion/generic/emotion_generic.c
@@ -280,9 +280,6 @@ _player_frame_resize(Emotion_Generic_Video *ev)
    ev->h = h;
    ev->ratio = (float)w / h;
 
-   if (ev->opening)
-     return;
-
    _emotion_frame_resize(ev->obj, ev->w, ev->h, ev->ratio);
 }
 

-- 


Reply via email to