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
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);
}
{
_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);
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);
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)