[0.6.43] update video found attr even surface type is null 37/125737/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 18 Apr 2017 12:55:18 +0000 (21:55 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 18 Apr 2017 12:55:18 +0000 (21:55 +0900)
Change-Id: I76ea510b4335f0f4ee6befd97b66a3107d0ca104

packaging/libmm-player.spec
src/mm_player_priv.c

index e5ba2200b28df065ca6d05d9f6cbd6d0cbcc9c83..df2de317f708271bea930c4615cd74e1aadf6c4f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.42
+Version:    0.6.43
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index ba4b47faaf70994d2c8ea86a429824ba1ac959ba..a76bd7d883145bf90b44c7f43505a0e13283e351 100644 (file)
@@ -2589,6 +2589,8 @@ __mmplayer_gst_decode_pad_added(GstElement *elem, GstPad *pad, gpointer data)
 
        if (strstr(name, "video")) {
                gint stype = 0;
+
+               mm_attrs_set_int_by_name(player->attrs, "content_video_found", TRUE);
                mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &stype);
 
                /* don't make video because of not required, and not support multiple track */
@@ -5473,8 +5475,6 @@ __mmplayer_gst_create_video_pipeline(mm_player_t* player, GstCaps* caps, MMDispl
        if (element_bucket)
                g_list_free(element_bucket);
 
-       mm_attrs_set_int_by_name(attrs, "content_video_found", TRUE);
-
        MMPLAYER_FLEAVE();
 
        return MM_ERROR_NONE;
@@ -11731,7 +11731,6 @@ GstCaps* caps, GstElementFactory* factory, gpointer data)
        gchar* caps_str = NULL;
        const gchar* klass = NULL;
        gint idx = 0;
-       int surface_type = 0;
 
        factory_name = GST_OBJECT_NAME(factory);
        klass = gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_KLASS);
@@ -11745,10 +11744,6 @@ GstCaps* caps, GstElementFactory* factory, gpointer data)
                __mmplayer_update_content_type_info(player);
        }
 
-       mm_attrs_get_int_by_name(player->attrs,
-                               "display_surface_type", &surface_type);
-       LOGD("check display surface type attribute: %d", surface_type);
-
        /* filtering exclude keyword */
        for (idx = 0; player->ini.exclude_element_keyword[idx][0] != '\0'; idx++) {
                if (strstr(factory_name, player->ini.exclude_element_keyword[idx])) {