int enable_video_decoded_cb = 0;
mm_attrs_get_int_by_name(player->attrs, "enable_video_decoded_cb", &enable_video_decoded_cb);
- if (enable_video_decoded_cb || !player->set_mode.media_packet_video_stream) {
- if (__mmplayer_gst_create_video_filters(player, &element_bucket) != MM_ERROR_NONE)
- goto ERROR;
- }
-
/* set video sink */
switch (surface_type) {
case MM_DISPLAY_SURFACE_OVERLAY:
+ if (__mmplayer_gst_create_video_filters(player, &element_bucket) != MM_ERROR_NONE)
+ goto ERROR;
if (strlen(player->ini.videosink_element_overlay) > 0)
videosink_element = player->ini.videosink_element_overlay;
else