- fix crash issue
- pipeline clock is released when the subtitle pipeline
state is sync to main pipeline during playing
which cause crash when the main pipeline is unreferenced.
Change-Id: Id71adee2288b41bb5ce5202a7f05a41917aa9374
Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.270
+Version: 0.6.271
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
current_state = GST_STATE(mainbin[MMPLAYER_M_PIPE].gst);
// sync clock with current pipeline
- curr_clock = GST_ELEMENT_CLOCK(player->pipeline->mainbin[MMPLAYER_M_PIPE].gst);
+ curr_clock = gst_element_get_clock(player->pipeline->mainbin[MMPLAYER_M_PIPE].gst);
curr_time = gst_clock_get_time(curr_clock);
base_time = gst_element_get_base_time(GST_ELEMENT_CAST(player->pipeline->mainbin[MMPLAYER_M_PIPE].gst));
if (GST_STATE_CHANGE_FAILURE == ret) {
LOGE("fail to state change.");
result = MM_ERROR_PLAYER_INTERNAL;
+ if (curr_clock)
+ gst_object_unref(curr_clock);
goto ERROR;
}
}