[0.6.222] support codec type setting with u3
[platform/core/multimedia/libmm-player.git] / src / mm_player_gst.c
index 269a8d1..da38d53 100644 (file)
@@ -3132,10 +3132,11 @@ __mmplayer_gst_deep_element_added(GstElement *bin, GstBin *child, GstElement *el
                /* CAUTION: if there is hw decoder, the rank value has to be higher than sw decoder
                   and codec default type in ini has to be hw.
                 */
+               LOGD("set codec type v(%d) a(%d)", video_codec_type, audio_codec_type);
                if (video_codec_type == MM_PLAYER_CODEC_TYPE_SW)
-                       g_object_set(G_OBJECT(child), "force-sw-decoder-for-video", TRUE, NULL);
+                       g_object_set(G_OBJECT(child), "force-sw-decoders-for-video", TRUE, NULL);
                if (audio_codec_type == MM_PLAYER_CODEC_TYPE_SW)
-                       g_object_set(G_OBJECT(child), "force-sw-decoder-for-audio", TRUE, NULL);
+                       g_object_set(G_OBJECT(child), "force-sw-decoders-for-audio", TRUE, NULL);
 
                mainbin[MMPLAYER_M_AUTOPLUG_PARSEBIN].id = MMPLAYER_M_AUTOPLUG_PARSEBIN;
                mainbin[MMPLAYER_M_AUTOPLUG_PARSEBIN].gst = element;