don't post error duplicately for prepare
authorYounghwan Ahn <younghwan_.an@samsung.com>
Tue, 12 Mar 2013 11:36:41 +0000 (20:36 +0900)
committerYounghwan Ahn <younghwan_.an@samsung.com>
Tue, 12 Mar 2013 11:36:41 +0000 (20:36 +0900)
Change-Id: Ibf41995f42c8e920e66282770bb755884dc8d6a0

src/mm_player_priv.c

index 4b681f0..717c4f6 100644 (file)
@@ -7672,10 +7672,12 @@ GstCaps *caps, gpointer data)
        /* try to plug */
        if ( ! __mmplayer_try_to_plug( player, pad, caps ) )
        {
+               gboolean async = FALSE;
+
                debug_error("failed to autoplug for type : %s\n", player->type);
+               mm_attrs_get_int_by_name(player->attrs, "profile_prepare_async", &async);
 
-               if ( ( PLAYER_INI()->async_start ) &&
-               ( player->posted_msg == FALSE ) )
+               if (async && player->posted_msg == FALSE)
                {
                        __mmplayer_post_missed_plugin( player );
                }