__mmplayer_add_sink(player, sink, FALSE);
- if (gst_element_sync_state_with_parent(queue) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(queue)) {
LOGE("failed to sync state");
goto ERROR;
}
- if (gst_element_sync_state_with_parent(sink) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(sink)) {
LOGE("failed to sync state");
goto ERROR;
}
goto ERROR;
}
- if (gst_element_sync_state_with_parent(queue2) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(queue2)) {
LOGE("failed to sync queue2 state with parent");
goto ERROR;
}
"max-size-buffers", 0, NULL); // disable or automatic
}
- if (gst_element_sync_state_with_parent(decodebin) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(decodebin)) {
LOGE("failed to sync decodebin state with parent");
goto ERROR;
}