emotion: advertise native resolution.
authorcedric <cedric>
Fri, 24 Jun 2011 12:26:29 +0000 (12:26 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 24 Jun 2011 12:26:29 +0000 (12:26 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@60664 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/emotion_smart.c
src/modules/gstreamer/emotion_gstreamer.c
src/modules/gstreamer/emotion_sink.c
src/modules/xine/emotion_xine.c

index bdee730..f67ec10 100644 (file)
@@ -1180,6 +1180,7 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio)
        changed = 1;
      }
    if (changed) evas_object_smart_callback_call(obj, SIG_FRAME_RESIZE, NULL);
+   evas_object_size_hint_request_set(obj, w, h);
 }
 
 EAPI void
index d48c457..0c3f6fd 100644 (file)
@@ -620,6 +620,7 @@ em_file_open(const char   *file,
 
        vstream = eina_list_data_get(ev->video_streams);
        ev->ratio = (double)vstream->width / (double)vstream->height;
+       _emotion_frame_resize(ev->obj, vstream->width, vstream->height, ev->ratio);
      }
 
    {
@@ -650,7 +651,7 @@ em_file_open(const char   *file,
      _free_metadata(ev->metadata);
    ev->metadata = calloc(1, sizeof(Emotion_Gstreamer_Metadata));
 
-  em_audio_channel_volume_set(ev, ev->volume);
+   em_audio_channel_volume_set(ev, ev->volume);
 
    _eos_timer_fct(ev);
    _emotion_open_done(ev->obj);
index 572185b..54c3a66 100644 (file)
@@ -508,11 +508,8 @@ static void evas_video_sink_render_handler(void *data,
    vstream->height = priv->height;
    ev->ratio = (double) priv->width / (double) priv->height;
 
-   if (vstream)
-     {
-        _emotion_video_pos_update(ev->obj, ev->position, vstream->length_time);
-        _emotion_frame_resize(ev->obj, vstream->width, vstream->height, ev->ratio);
-     }
+   _emotion_video_pos_update(ev->obj, ev->position, vstream->length_time);
+   _emotion_frame_resize(ev->obj, priv->width, priv->height, ev->ratio);
 
  exit_point:
    gst_buffer_unref(buffer);
index 3738f6a..de02e3b 100644 (file)
@@ -1268,6 +1268,7 @@ _em_fd_ev_active(void *data __UNUSED__, Ecore_Fd_Handler *fdh)
                             ev->anim = NULL;
                          }
                        _emotion_open_done(ev->obj);
+                      _emotion_frame_resize(ev->obj, ev->w, ev->h, ev->ratio);
                       break;
                     case 3: /* shutdown done */
                        if (ev->anim)