emotion: advertise native resolution.
SVN revision: 60664
This commit is contained in:
parent
dadaf6f420
commit
923bff4e1c
|
@ -1180,6 +1180,7 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio)
|
||||||
changed = 1;
|
changed = 1;
|
||||||
}
|
}
|
||||||
if (changed) evas_object_smart_callback_call(obj, SIG_FRAME_RESIZE, NULL);
|
if (changed) evas_object_smart_callback_call(obj, SIG_FRAME_RESIZE, NULL);
|
||||||
|
evas_object_size_hint_request_set(obj, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
|
@ -620,6 +620,7 @@ em_file_open(const char *file,
|
||||||
|
|
||||||
vstream = eina_list_data_get(ev->video_streams);
|
vstream = eina_list_data_get(ev->video_streams);
|
||||||
ev->ratio = (double)vstream->width / (double)vstream->height;
|
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);
|
_free_metadata(ev->metadata);
|
||||||
ev->metadata = calloc(1, sizeof(Emotion_Gstreamer_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);
|
_eos_timer_fct(ev);
|
||||||
_emotion_open_done(ev->obj);
|
_emotion_open_done(ev->obj);
|
||||||
|
|
|
@ -508,11 +508,8 @@ static void evas_video_sink_render_handler(void *data,
|
||||||
vstream->height = priv->height;
|
vstream->height = priv->height;
|
||||||
ev->ratio = (double) priv->width / (double) 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, priv->width, priv->height, ev->ratio);
|
||||||
_emotion_video_pos_update(ev->obj, ev->position, vstream->length_time);
|
|
||||||
_emotion_frame_resize(ev->obj, vstream->width, vstream->height, ev->ratio);
|
|
||||||
}
|
|
||||||
|
|
||||||
exit_point:
|
exit_point:
|
||||||
gst_buffer_unref(buffer);
|
gst_buffer_unref(buffer);
|
||||||
|
|
|
@ -1268,6 +1268,7 @@ _em_fd_ev_active(void *data __UNUSED__, Ecore_Fd_Handler *fdh)
|
||||||
ev->anim = NULL;
|
ev->anim = NULL;
|
||||||
}
|
}
|
||||||
_emotion_open_done(ev->obj);
|
_emotion_open_done(ev->obj);
|
||||||
|
_emotion_frame_resize(ev->obj, ev->w, ev->h, ev->ratio);
|
||||||
break;
|
break;
|
||||||
case 3: /* shutdown done */
|
case 3: /* shutdown done */
|
||||||
if (ev->anim)
|
if (ev->anim)
|
||||||
|
|
Loading…
Reference in New Issue