[0.6.276] Remove unused reference to fix mem leak 35/309135/3 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240409.152240
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 5 Apr 2024 05:33:02 +0000 (14:33 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 5 Apr 2024 07:29:08 +0000 (16:29 +0900)
Change-Id: I8902cd3d42c462294fc6dbb13d45bdc1def8e5ce

packaging/libmm-player.spec
src/include/mm_player_priv.h
src/mm_player_gst.c

index 3c54fabba1625e172dc8676c11f4102d0f0b3bb7..5cec31e01aca36fd5e3687c0d4796efbc2e2d32f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.275
+Version:    0.6.276
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 4d9df970b6fcb95176ecbaea35074aec0f79bd01..74add5d607ca058fc6576c8fea31ae5ddc613e88 100644 (file)
@@ -766,10 +766,6 @@ typedef struct {
        GCond subtitle_info_cond;
        GMutex subtitle_info_mutex;
 
-       /* stream collection */
-       GstStreamCollection *collection;
-       guint stream_notify_id;
-
        mmplayer_track_t track[MM_PLAYER_TRACK_TYPE_MAX];
 
        guint internal_text_idx;
index b873d71df4bf4fd7c27dad45ea3c6e3120564015..9f03b36d43518885ba925aa63ce25e50fe6d91d3 100644 (file)
@@ -1923,30 +1923,6 @@ __mmplayer_dump_collection(GstStreamCollection * collection)
        }
 }
 
-static void
-__mmplayer_stream_notify_cb(GstStreamCollection *collection,
-                       GstStream *stream, GParamSpec *pspec, gpointer data)
-{
-       LOGD ("Got stream-notify from stream %s for %s (collection %p)\n",
-                               gst_stream_get_stream_id(stream), pspec->name, collection);
-       if (g_str_equal(pspec->name, "caps")) {
-               GstCaps *caps = gst_stream_get_caps(stream);
-               MMPLAYER_LOG_GST_CAPS_TYPE(caps);
-               gst_caps_unref(caps);
-       }
-
-#ifdef __DEBUG__
-       if (g_str_equal (pspec->name, "tags")) {
-               GstTagList *tags = gst_stream_get_tags(stream);
-               if (tags) {
-                       LOGD ("  tags:\n");
-                       gst_tag_list_foreach(tags, __mmplayer_print_tag_foreach, GUINT_TO_POINTER(MMPLAYER_TAG_INDENT));
-                       gst_tag_list_unref(tags);
-               }
-       }
-#endif
-}
-
 static void
 __mmplayer_gst_bus_msg_callback(GstMessage *msg, gpointer data)
 {
@@ -2059,15 +2035,6 @@ __mmplayer_gst_bus_msg_callback(GstMessage *msg, gpointer data)
                gst_message_parse_stream_collection(msg, &collection);
                if (collection) {
                        __mmplayer_dump_collection(collection);
-                       if (player->collection && player->stream_notify_id) {
-                               g_signal_handler_disconnect(player->collection, player->stream_notify_id);
-                               player->stream_notify_id = 0;
-                       }
-                       gst_object_replace((GstObject **)&player->collection, (GstObject *)collection);
-                       if (player->collection) {
-                               player->stream_notify_id = g_signal_connect(player->collection, "stream-notify",
-                                                       (GCallback)__mmplayer_stream_notify_cb, player);
-                       }
                        gst_object_unref(collection);
                }
        } break;