/* For PD mode */
#define PLAYER_PD_EXT_MAX_SIZE_BYTE 1024 * 1024 * 3
-#define PLAYER_BUS_MSG_DEFAULT_TIMEOUT 500 /* bus msg wait timeout */
-#define PLAYER_BUS_MSG_PREPARE_TIMEOUT 10
-
#define SPATIAL_AUDIO_CAPS "audio/x-raw,format=S16LE,channels=4"
/*---------------------------------------------------------------------------
MMPLAYER_FENTER();
MMPLAYER_RETURN_IF_FAIL(player);
- player->bus_msg_timeout = PLAYER_BUS_MSG_DEFAULT_TIMEOUT;
+ /* disconnecting bus watch */
+ if (player->bus_watcher)
+ __mmplayer_remove_g_source_from_context(player->context.thread_default, player->bus_watcher);
+ player->bus_watcher = 0;
/* destroy the gst bus msg thread */
if (player->bus_msg_thread) {
case GST_STATE_PAUSED:
{
gboolean prepare_async = FALSE;
- player->bus_msg_timeout = PLAYER_BUS_MSG_DEFAULT_TIMEOUT;
if (!player->audio_cb_probe_id && player->set_mode.pcm_extraction && !player->audio_stream_render_cb_ex)
__mmplayer_configure_audio_callback(player);
case GST_STATE_PLAYING:
{
- player->bus_msg_timeout = PLAYER_BUS_MSG_DEFAULT_TIMEOUT;
-
if (MMPLAYER_IS_STREAMING(player)) {
// managed prepare async case when buffering is completed
// pending state should be reset otherwise, it's still playing even though it's resumed after bufferging.
g_mutex_init(&player->bus_msg_thread_mutex);
g_cond_init(&player->bus_msg_thread_cond);
player->bus_msg_thread_exit = FALSE;
- player->bus_msg_timeout = PLAYER_BUS_MSG_DEFAULT_TIMEOUT;
player->bus_msg_thread =
g_thread_try_new("gst_bus_msg_thread", __mmplayer_gst_bus_msg_thread, (gpointer)player, NULL);
if (!player->bus_msg_thread) {
/* first we need to disconnect all signal hander */
__mmplayer_release_signal_connection(player, MM_PLAYER_SIGNAL_TYPE_ALL);
- if (player->bus_watcher)
- __mmplayer_remove_g_source_from_context(player->context.thread_default, player->bus_watcher);
- player->bus_watcher = 0;
-
if (mainbin) {
MMPlayerGstElement* audiobin = player->pipeline->audiobin;
MMPlayerGstElement* videobin = player->pipeline->videobin;
else
ret = __mmplayer_realize_streaming_ext(player);
- player->bus_msg_timeout = PLAYER_BUS_MSG_PREPARE_TIMEOUT;
MMPLAYER_BUS_MSG_THREAD_SIGNAL(player);
MMPLAYER_FLEAVE();