emotion: advertise native resolution.

SVN revision: 60664
This commit is contained in:
Cedric BAIL 2011-06-24 12:26:29 +00:00
parent dadaf6f420
commit 923bff4e1c
4 changed files with 6 additions and 6 deletions

View 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

View 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);

View 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);

View 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)