[0.6.261] Set h264parse to send SPS/PPS with every IDR frame if v4l2h264dec is used
[platform/core/multimedia/libmm-player.git] / src / mm_player_priv.c
index 42743ae..3c10d20 100644 (file)
@@ -7796,7 +7796,9 @@ _mmplayer_gst_element_added(GstElement *bin, GstElement *element, gpointer data)
                }
        } else if (g_strrstr(factory_name, player->ini.videocodec_element_hw)) {
                player->pipeline->mainbin[MMPLAYER_M_DEC1].gst = element;
-       } else if (g_strrstr(factory_name, "omxdec_h264")) {
+       }
+
+       if (g_strrstr(factory_name, "omxdec_h264") || g_strrstr(factory_name, "v4l2h264dec")) {
                GstElement *video_parse = player->pipeline->mainbin[MMPLAYER_M_V_PARSE].gst;
                if (video_parse && (g_object_class_find_property(G_OBJECT_GET_CLASS(video_parse), "config-interval"))) {
                        g_object_set(G_OBJECT(video_parse), "config-interval", -1, NULL);