add audio resampler
authorYounghwan Ahn <younghwan_.an@samsung.com>
Sat, 29 Jun 2013 08:22:52 +0000 (17:22 +0900)
committerYounghwan Ahn <younghwan_.an@samsung.com>
Sat, 29 Jun 2013 08:22:52 +0000 (17:22 +0900)
src/mm_player_priv.c

index 1c8b0d6..7a5fd56 100755 (executable)
@@ -3174,6 +3174,9 @@ __mmplayer_gst_create_audio_pipeline(mm_player_t* player)
        /* converter */
        MMPLAYER_CREATE_ELEMENT(audiobin, MMPLAYER_A_CONV, "audioconvert", "audioconverter", TRUE);
 
+       /* resampler */
+       MMPLAYER_CREATE_ELEMENT(audiobin, MMPLAYER_A_RESAMPLER, "audioresample", "resampler", TRUE);
+
        if ( ! player->is_sound_extraction )
        {
                GstCaps* caps = NULL;
@@ -3302,9 +3305,6 @@ __mmplayer_gst_create_audio_pipeline(mm_player_t* player)
                char *caps_type = NULL;
                GstCaps* caps = NULL;
 
-               /* resampler */
-               MMPLAYER_CREATE_ELEMENT(audiobin, MMPLAYER_A_RESAMPLER, "audioresample", "resampler", TRUE);
-
                /* get conf. values */
                mm_attrs_multiple_get(player->attrs,
                                        NULL,