Replace videosink from waylandsink to tizenwlsink 75/159475/1 submit/tizen/20171110.011647 submit/tizen/20171114.004442
authorHyunil <hyunil46.park@samsung.com>
Thu, 9 Nov 2017 06:25:01 +0000 (15:25 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 9 Nov 2017 06:25:01 +0000 (15:25 +0900)
Change-Id: If7d210bc5b3f0eaeadd6bf7891dfa4bd0fbdafd4
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
src/include/mm_player_ini.h
src/mm_player_priv.c

index 7f312aa..6d62381 100644 (file)
@@ -137,7 +137,7 @@ typedef struct __mm_player_ini {
 #define DEFAULT_USE_SYSTEM_CLOCK               TRUE
 #define DEFAULT_DELAY_BEFORE_REPEAT                    50 /* msec */
 #define DEFAULT_EOS_DELAY                              0 /* msec */
-#define DEFAULT_VIDEOSINK_OVERLAY                      "waylandsink"
+#define DEFAULT_VIDEOSINK_OVERLAY                      "tizenwlsink"
 #define DEFAULT_VIDEOSINK_EVAS                         "evasimagesink"
 #define DEFAULT_VIDEOSINK_FAKE                         "fakesink"
 #define DEFAULT_AUDIORESAMPLER                 "audioresample"
index 055821e..069eaed 100644 (file)
@@ -3640,7 +3640,7 @@ __mmplayer_get_property_value_for_rotation(mm_player_t* player, int rotation_ang
        }
 
        /*
-         * waylandsink (A)
+         * tizenwlsink (A)
          * custom_convert - none (B)
          * videoflip - none (C)
          */
@@ -3666,7 +3666,7 @@ __mmplayer_get_property_value_for_rotation(mm_player_t* player, int rotation_ang
 
        /* get property value for setting */
        switch (rotation_type) {
-       case ROTATION_USING_SINK: // waylandsink
+       case ROTATION_USING_SINK: // tizenwlsink
                {
                        switch (dest_angle) {
                        case 0:
@@ -3887,8 +3887,8 @@ __mmplayer_update_wayland_videosink_video_param(mm_player_t* player, char *param
        if (MM_ERROR_NONE != __mmplayer_video_param_check_video_sink_bin(player))
                return MM_ERROR_PLAYER_NOT_INITIALIZED;
 
-       if (strcmp(player->ini.videosink_element_overlay, "waylandsink")) {
-               LOGE("can not find waylandsink");
+       if (strcmp(player->ini.videosink_element_overlay, "tizenwlsink")) {
+               LOGE("can not find tizenwlsink");
                return MM_ERROR_PLAYER_INTERNAL;
        }
 
@@ -5240,8 +5240,8 @@ __mmplayer_gst_create_video_filters(mm_player_t* player, GList** bucket)
        if (player->set_mode.video_zc) {
                video_csc = ""; /* videosinks don't use videoconvert normally */
        } else {
-               /* sw codec, if player use libav, waylandsink need videoconvert to render shm wl-buffer which support RGB only */
-               if ((surface_type == MM_DISPLAY_SURFACE_OVERLAY) && (!strncmp(player->ini.videosink_element_overlay, "waylandsink", strlen(player->ini.videosink_element_overlay))))
+               /* sw codec, if player use libav, tizenwlsink need videoconvert to render shm wl-buffer which support RGB only */
+               if ((surface_type == MM_DISPLAY_SURFACE_OVERLAY) && (!strncmp(player->ini.videosink_element_overlay, "tizenwlsink", strlen(player->ini.videosink_element_overlay))))
                        video_csc = "videoconvert";
        }
        if (video_csc && (strcmp(video_csc, ""))) {
@@ -5276,7 +5276,7 @@ ERROR:
  */
 /**
   * VIDEO PIPELINE
-  * - video overlay surface(arm/x86) : waylandsink
+  * - video overlay surface(arm/x86) : tizenwlsink
   */
 static int
 __mmplayer_gst_create_video_pipeline(mm_player_t* player, GstCaps* caps, MMDisplaySurfaceType surface_type)
@@ -5410,7 +5410,7 @@ __mmplayer_gst_create_video_pipeline(mm_player_t* player, GstCaps* caps, MMDispl
                        LOGD("selected videosink name: %s", videosink_element);
 
                        /* support shard memory with S/W codec on HawkP */
-                       if (strncmp(videosink_element, "waylandsink", strlen(videosink_element)) == 0) {
+                       if (strncmp(videosink_element, "tizenwlsink", strlen(videosink_element)) == 0) {
                                g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst,
                                        "use-tbm", use_tbm, NULL);
                        }