[0.6.275] change condition to support Gst 1.22.0
[platform/core/multimedia/libmm-player.git] / src / mm_player_gst.c
index a907ccf..585a8a7 100644 (file)
@@ -3132,7 +3132,8 @@ __mmplayer_gst_deep_element_added(GstElement *bin, GstBin *child, GstElement *el
                }
        }
 
-       if (g_strrstr(factory_name, "parsebin")) {
+       if (g_strrstr(factory_name, "parsebin") /* will be removed after gst 1.22.0 is applied */
+               || g_strrstr(factory_name, "identity")) {
                if ((!MMPLAYER_IS_RTSP_STREAMING(player)) && (!mainbin[MMPLAYER_M_DEMUXED_S_BUFFER].gst)) {
                        GstElement *ch_element = __mmplayer_gst_find_child_element(child, "multiqueue");
                        if (ch_element) {