Turn out remaining gst-1.0 code
[platform/core/multimedia/libmm-player.git] / src / mm_player_attrs.c
old mode 100755 (executable)
new mode 100644 (file)
index 1d511d5..1077e00
 #include <vconf.h>
 #include <mm_attrs_private.h>
 #include <mm_attrs.h>
+#ifndef GST_API_VERSION_1
 #include <gst/interfaces/xoverlay.h>
-
+#else
+#include <gst/video/videooverlay.h>
+#endif
 #include "mm_player_priv.h"
 #include "mm_player_attrs.h"
 
@@ -203,10 +206,9 @@ __mmplayer_apply_attribute(MMHandleType handle, const char *attribute_name)
        {
                /* check videosink element is created */
                if ( !player->pipeline ||
-                        !player->pipeline->videobin ||
-                        !player->pipeline->videobin[MMPLAYER_V_SINK].gst )
+                       !player->pipeline->videobin ||
+                       !player->pipeline->videobin[MMPLAYER_V_SINK].gst )
                {
-                       debug_warning("videosink element is not yet ready");
                        /*
                         * The attribute should be committed even though videobin is not created yet.
                         * So, true should be returned here.